]> granicus.if.org Git - curl/commitdiff
curl_easy_reset: clear digest auth state
authorDaniel Stenberg <daniel@haxx.se>
Thu, 25 Jan 2018 16:51:26 +0000 (17:51 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 30 Jan 2018 07:17:59 +0000 (08:17 +0100)
Bug: https://curl.haxx.se/mail/lib-2018-01/0074.html
Reported-by: Ruurd Beerstra
Fixes #2255
Closes #2272

lib/easy.c

index edc716d0a5cac9e6a5d066aba7ea8b5e3b1c3f44..3389d446326c8be0f5dba5c3c0b6c9a07ceea6fa 100644 (file)
@@ -73,6 +73,7 @@
 #include "sigpipe.h"
 #include "ssh.h"
 #include "setopt.h"
+#include "http_digest.h"
 
 /* The last 3 #include files should be in this order */
 #include "curl_printf.h"
@@ -1017,6 +1018,7 @@ void curl_easy_reset(struct Curl_easy *data)
   /* zero out authentication data: */
   memset(&data->state.authhost, 0, sizeof(struct auth));
   memset(&data->state.authproxy, 0, sizeof(struct auth));
+  Curl_digest_cleanup(data);
 }
 
 /*