1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

curl_easy_reset: clear digest auth state

Bug: https://curl.haxx.se/mail/lib-2018-01/0074.html
Reported-by: Ruurd Beerstra
Fixes #2255
Closes #2272
This commit is contained in:
Daniel Stenberg 2018-01-25 17:51:26 +01:00
parent a406e86ecb
commit 9caa3e248d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

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