mirror of
https://github.com/mirror/wget.git
synced 2025-01-06 02:10:28 +08:00
* src/http.c (initialize_request): Fix check for user
Reported-by: Coverity
This commit is contained in:
parent
22aed3ed4b
commit
b7b67e23cd
@ -1885,7 +1885,7 @@ initialize_request (struct url *u, struct http_stat *hs, int *dt, struct url *pr
|
|||||||
/* We only do "site-wide" authentication with "global" user/password
|
/* We only do "site-wide" authentication with "global" user/password
|
||||||
* values unless --auth-no-challange has been requested; URL user/password
|
* values unless --auth-no-challange has been requested; URL user/password
|
||||||
* info overrides. */
|
* info overrides. */
|
||||||
if (user && *passwd && (!u->user || opt.auth_without_challenge))
|
if (*user && *passwd && (!u->user || opt.auth_without_challenge))
|
||||||
{
|
{
|
||||||
/* If this is a host for which we've already received a Basic
|
/* If this is a host for which we've already received a Basic
|
||||||
* challenge, we'll go ahead and send Basic authentication creds. */
|
* challenge, we'll go ahead and send Basic authentication creds. */
|
||||||
|
Loading…
Reference in New Issue
Block a user