diff options
| author | Chris Burdess <dog@bluezoo.org> | 2004-12-07 11:45:55 +0000 |
|---|---|---|
| committer | Chris Burdess <dog@bluezoo.org> | 2004-12-07 11:45:55 +0000 |
| commit | 8b288ef1f93c59b36040d9ebd4c2b04253ecbc05 (patch) | |
| tree | 45c3ed9a5d79de37be73ce5347f18248f9664c9c /gnu/java/net/protocol/http | |
| parent | 0d6ea2cc695a6c34eb870b41f8028652ce37353a (diff) | |
| download | classpath-8b288ef1f93c59b36040d9ebd4c2b04253ecbc05.tar.gz | |
2004-12-06 Chris Burdess <dog@gnu.org>
* gnu/java/net/LineInputStream.java: (read) fixed possible infinite
loop (inetlib bug #11200).
2004-12-06 Chris Burdess <dog@gnu.org>
* gnu/java/net/protocol/http/HTTPURLConnection.java:
(getHeaderField) return null if there are less than (index+1) fields.
Diffstat (limited to 'gnu/java/net/protocol/http')
| -rw-r--r-- | gnu/java/net/protocol/http/HTTPURLConnection.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/java/net/protocol/http/HTTPURLConnection.java b/gnu/java/net/protocol/http/HTTPURLConnection.java index 7995bc213..c8cd73659 100644 --- a/gnu/java/net/protocol/http/HTTPURLConnection.java +++ b/gnu/java/net/protocol/http/HTTPURLConnection.java @@ -450,6 +450,10 @@ public class HTTPURLConnection int count = 1; do { + if (!i.hasNext()) + { + return null; + } entry = (Map.Entry) i.next(); count++; } |
