From 90fcad63cbb9943c7c7a564944a3bce7d10e581a Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 20 Oct 2011 17:54:18 -0700 Subject: Fixed compilation when HTTP or cookies are disabled --- lib/share.c | 2 ++ lib/url.c | 2 ++ 2 files changed, 4 insertions(+) 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) { diff --git a/lib/url.c b/lib/url.c index 8ccef459a..c3beaaa6f 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2094,8 +2094,10 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, data->dns.hostcachetype = HCACHE_NONE; } +#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES) if(data->share->cookies == data->cookies) data->cookies = NULL; +#endif if(data->share->sslsession == data->state.session) { data->state.session = NULL; -- cgit v1.2.3