From: Daniel Stenberg Date: Wed, 19 Apr 2023 06:23:19 +0000 (+0200) Subject: http: store the password in the correct variable X-Git-Tag: curl-8_1_0~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=406cc24f5d529ed625f39dd24c4be1f7adaea771;p=thirdparty%2Fcurl.git http: store the password in the correct variable Typo from fc2f1e547a4a, detected by Coverity (because there's dead code due to this). Closes #11002 --- diff --git a/lib/http.c b/lib/http.c index a9644d3f98..80e43f6f36 100644 --- a/lib/http.c +++ b/lib/http.c @@ -4606,7 +4606,7 @@ static CURLcode req_assign_url_authority(struct http_req *req, CURLU *url) if(uc && uc != CURLUE_NO_USER) goto out; if(user) { - uc = curl_url_get(url, CURLUPART_PASSWORD, &user, 0); + uc = curl_url_get(url, CURLUPART_PASSWORD, &pass, 0); if(uc && uc != CURLUE_NO_PASSWORD) goto out; }