aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2019-05-10 13:10:34 +0100
committerSteve Holme <steve_holme@hotmail.com>2019-05-11 17:23:32 +0100
commit5c2aebe308e459d2ca8fad29bde7885190ffe262 (patch)
tree65b012ccc16164946fc36d5637609c8dc4de4959 /lib/easy.c
parentfb243b0475c2a3a60889120ee3f05380e60645f0 (diff)
http_digest: Don't expose functions when HTTP and Crypto Auth are disabled
Closes #3861
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 39482469c..40be38220 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -961,7 +961,10 @@ 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));
+
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH)
Curl_digest_cleanup(data);
+#endif
}
/*