diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-04-19 08:23:19 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-04-24 13:54:52 +0200 |
commit | 406cc24f5d529ed625f39dd24c4be1f7adaea771 (patch) | |
tree | 9188dfca598e690af75f5c27f8c0a4d6c590b3fd | |
parent | 20252b77bcef114c4d4a9bed571f314fd669c7a3 (diff) | |
download | curl-406cc24f5d529ed625f39dd24c4be1f7adaea771.tar.gz |
http: store the password in the correct variable
Typo from fc2f1e547a4a, detected by Coverity (because there's dead code
due to this).
Closes #11002
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c index a9644d3f9..80e43f6f3 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; } |