From b7b67e23cd6349f1b2ca8a22b1041d6b5ce7ee49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Thu, 8 Sep 2016 12:48:29 +0200 Subject: [PATCH] * src/http.c (initialize_request): Fix check for user Reported-by: Coverity --- src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index 51e895b9..a1598a5a 100644 --- a/src/http.c +++ b/src/http.c @@ -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 * values unless --auth-no-challange has been requested; URL user/password * 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 * challenge, we'll go ahead and send Basic authentication creds. */