mirror of
https://github.com/curl/curl.git
synced 2026-07-23 23:47:15 +03:00
http: fix proxy auth with blank password
Regression in 7.71.0 Added test case 346 to verify. Reported-by: Kristoffer Gleditsch Fixes #5613 Closes #5616
This commit is contained in:
parent
fc3cba22c7
commit
ff43fb6dec
3 changed files with 62 additions and 2 deletions
|
|
@ -308,7 +308,7 @@ static CURLcode http_output_basic(struct connectdata *conn, bool proxy)
|
|||
pwd = conn->passwd;
|
||||
}
|
||||
|
||||
out = aprintf("%s:%s", user, pwd);
|
||||
out = aprintf("%s:%s", user, pwd ? pwd : "");
|
||||
if(!out)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue