aboutsummaryrefslogtreecommitdiff
path: root/lib/share.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-10-20 17:54:18 -0700
committerDan Fandrich <dan@coneharvesters.com>2011-10-20 17:54:18 -0700
commit90fcad63cbb9943c7c7a564944a3bce7d10e581a (patch)
tree6885e23af8434bb1f4ae7c64fd91dda7efd72260 /lib/share.c
parent1399c3da0db131ad67db701573a1390da29e3a2a (diff)
Fixed compilation when HTTP or cookies are disabled
Diffstat (limited to 'lib/share.c')
-rw-r--r--lib/share.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/share.c b/lib/share.c
index 59f33eb10..71c2ef308 100644
--- a/lib/share.c
+++ b/lib/share.c
@@ -194,8 +194,10 @@ curl_share_cleanup(CURLSH *sh)
share->hostcache = NULL;
}
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
if(share->cookies)
Curl_cookie_cleanup(share->cookies);
+#endif
#ifdef USE_SSL
if(share->sslsession) {