summaryrefslogtreecommitdiff
path: root/lib/url.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/url.c
parentfb243b0475c2a3a60889120ee3f05380e60645f0 (diff)
downloadcurl-5c2aebe308e459d2ca8fad29bde7885190ffe262.tar.gz
http_digest: Don't expose functions when HTTP and Crypto Auth are disabled
Closes #3861
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index cd775af4a..02198627e 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -379,7 +379,9 @@ CURLcode Curl_close(struct Curl_easy *data)
Curl_altsvc_cleanup(data->asi);
data->asi = NULL;
#endif
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH)
Curl_digest_cleanup(data);
+#endif
Curl_safefree(data->info.contenttype);
Curl_safefree(data->info.wouldredirect);