svn commit: r210563 - head/lib/libfetch

Dag-Erling Smorgrav des at FreeBSD.org
Wed Jul 28 15:29:19 UTC 2010


Author: des
Date: Wed Jul 28 15:29:18 2010
New Revision: 210563
URL: http://svn.freebsd.org/changeset/base/210563

Log:
  Fix a couple of embarrassing mistakes in the previous commit.
  
  Submitted by:	Dimitry Andric <dimitry at andric.com>

Modified:
  head/lib/libfetch/http.c

Modified: head/lib/libfetch/http.c
==============================================================================
--- head/lib/libfetch/http.c	Wed Jul 28 15:22:52 2010	(r210562)
+++ head/lib/libfetch/http.c	Wed Jul 28 15:29:18 2010	(r210563)
@@ -1786,13 +1786,13 @@ http_request(struct url *URL, const char
 			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:


More information about the svn-src-all mailing list