diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-03-01 22:32:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-03-01 22:32:03 +0000 |
commit | 590f0358d86c402f94b329f2ce0d612cbb749c95 (patch) | |
tree | b49594ecbc71c0c9473c307875437101867b8f29 /lib/http.c | |
parent | 115446be3784f996cd4927191db55ae1613a897f (diff) | |
download | curl-590f0358d86c402f94b329f2ce0d612cbb749c95.tar.gz |
- Anatoli Tubman found and fixed a crash with Negotiate authentication used on
a re-used connection where both requests used Negotiate.
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c index 45cabd4b6..59a275d0d 100644 --- a/lib/http.c +++ b/lib/http.c @@ -2358,6 +2358,14 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) te ); + /* + * Free userpwd now --- cannot reuse this for Negotiate and possibly NTLM + * with basic and digest, it will be freed anyway by the next request + */ + + Curl_safefree (conn->allocptr.userpwd); + conn->allocptr.userpwd = NULL; + if(result) return result; |