mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Fixed compilation when HTTP or cookies are disabled
This commit is contained in:
parent
1399c3da0d
commit
90fcad63cb
@ -194,8 +194,10 @@ curl_share_cleanup(CURLSH *sh)
|
|||||||
share->hostcache = NULL;
|
share->hostcache = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
|
||||||
if(share->cookies)
|
if(share->cookies)
|
||||||
Curl_cookie_cleanup(share->cookies);
|
Curl_cookie_cleanup(share->cookies);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_SSL
|
#ifdef USE_SSL
|
||||||
if(share->sslsession) {
|
if(share->sslsession) {
|
||||||
|
@ -2094,8 +2094,10 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
|
|||||||
data->dns.hostcachetype = HCACHE_NONE;
|
data->dns.hostcachetype = HCACHE_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
|
||||||
if(data->share->cookies == data->cookies)
|
if(data->share->cookies == data->cookies)
|
||||||
data->cookies = NULL;
|
data->cookies = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
if(data->share->sslsession == data->state.session) {
|
if(data->share->sslsession == data->state.session) {
|
||||||
data->state.session = NULL;
|
data->state.session = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user