mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Fix a couple of embarrassing mistakes in the previous commit.
Submitted by: Dimitry Andric <dimitry@andric.com>
This commit is contained in:
parent
41bc155d1f
commit
c954ded250
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210563
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue