diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-06-26 14:16:21 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-06-28 00:29:59 +0200 |
commit | ff43fb6decaa6ea78dff59b591d70c55f7071d34 (patch) | |
tree | 7712eeb8e6503be9b28fcebfd62630e618c41b33 /lib | |
parent | fc3cba22c70f8ee04429dff7627a3a7cb7762098 (diff) | |
download | curl-ff43fb6decaa6ea78dff59b591d70c55f7071d34.tar.gz |
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
Diffstat (limited to 'lib')
-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 19e471ee6..b914ff324 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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; |