From c954ded2503e4246f98d5d8fe71397e4cd82c54d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Wed, 28 Jul 2010 15:29:18 +0000 Subject: [PATCH] Fix a couple of embarrassing mistakes in the previous commit. Submitted by: Dimitry Andric --- lib/libfetch/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 41c81007a8f7..531342a70068 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: