Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 2010 15:29:19 +0000 (UTC)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210563 - head/lib/libfetch
Message-ID:  <201007281529.o6SFTJtZ056277@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007281529.o6SFTJtZ056277>