summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-01-25 17:51:26 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-01-30 00:06:27 +0100
commit96f68e017bceb6092663da8a64249bf6deb02dfb (patch)
tree930e9e30652898193cc098ceca748e141bdaeef6
parentb7db2842666286bb66111b1da46e707bf5d417b4 (diff)
downloadcurl-bagder/curl_easy_reset-clear-digest.tar.gz
curl_easy_reset: clear digest auth statebagder/curl_easy_reset-clear-digest
Bug: https://curl.haxx.se/mail/lib-2018-01/0074.html Reported-by: Ruurd Beerstra Fixes #2255
-rw-r--r--lib/easy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c
index edc716d0a..3389d4463 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -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);
}
/*