aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-03-01 22:32:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-03-01 22:32:03 +0000
commit590f0358d86c402f94b329f2ce0d612cbb749c95 (patch)
treeb49594ecbc71c0c9473c307875437101867b8f29 /lib/http.c
parent115446be3784f996cd4927191db55ae1613a897f (diff)
- 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.c8
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;