]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: store the password in the correct variable
authorDaniel Stenberg <daniel@haxx.se>
Wed, 19 Apr 2023 06:23:19 +0000 (08:23 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 24 Apr 2023 11:54:52 +0000 (13:54 +0200)
Typo from fc2f1e547a4a, detected by Coverity (because there's dead code
due to this).

Closes #11002

lib/http.c

index a9644d3f9841c8ddac1c732a4d377fba3eba0347..80e43f6f361e88553373afe008b969b05c26d167 100644 (file)
@@ -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;
   }