summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2010-07-28 15:29:18 +0000
committerdes <des@FreeBSD.org>2010-07-28 15:29:18 +0000
commit6aaf496254ae07085fc7ab479c417e5161b455dc (patch)
tree0dd3ff806c6122064a8f155e8d6869dc2f73aef8
parent305e37b5f4ad467ff6c8edfdd42f4358ca3c0c36 (diff)
downloadFreeBSD-src-6aaf496254ae07085fc7ab479c417e5161b455dc.zip
FreeBSD-src-6aaf496254ae07085fc7ab479c417e5161b455dc.tar.gz
Fix a couple of embarrassing mistakes in the previous commit.
Submitted by: Dimitry Andric <dimitry@andric.com>
-rw-r--r--lib/libfetch/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index 41c8100..531342a7 100644
--- a/lib/libfetch/http.c
+++ b/lib/libfetch/http.c
@@ -1786,13 +1786,13 @@ http_request(struct url *URL, const char *op, struct url_stat *us,
case hdr_www_authenticate:
if (conn->err != HTTP_NEED_AUTH)
break;
- if (http_parse_authenticate(p, &server_challenges))
+ if (http_parse_authenticate(p, &server_challenges) == 0)
++n;
break;
case hdr_proxy_authenticate:
if (conn->err != HTTP_NEED_PROXY_AUTH)
break;
- if (http_parse_authenticate(p, &proxy_challenges) == 0);
+ if (http_parse_authenticate(p, &proxy_challenges) == 0)
++n;
break;
case hdr_end:
OpenPOWER on IntegriCloud