Commit 3eee5bf4 by Goffredo Baroncelli Committed by Tom Tromey

re PR libgcj/21074 (Trivial bug in the method getHeaderFieldKey() in the file…

re PR libgcj/21074 (Trivial bug in the method  getHeaderFieldKey() in the file java/net/protocol/http/HTTPURLConnection.java)

2005-06-15  Goffredo Baroncelli  <kreijack@inwind.it>

	PR libgcj/21074:
	* gnu/java/net/protocol/http/HTTPURLConnection.java
	(getHeaderFieldKey): Check index.

From-SVN: r100994
parent 14643af3
2005-06-15 Goffredo Baroncelli <kreijack@inwind.it>
PR libgcj/21074:
* gnu/java/net/protocol/http/HTTPURLConnection.java
(getHeaderFieldKey): Check index.
2005-06-15 Tom Tromey <tromey@redhat.com>
PR libgcj/21906:
......
/* HTTPURLConnection.java --
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
......@@ -572,6 +572,10 @@ public class HTTPURLConnection
int count = 1;
do
{
if (!i.hasNext())
{
return null;
}
entry = (Map.Entry) i.next();
count++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment