diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-06-02 15:45:27 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-06-02 22:54:12 +0200 |
commit | 2bd75e5686b2e6ff3824c4dfb2b6ec86b60f454c (patch) | |
tree | baa197b3b32445886a893e7d367ef93e44f3a85f /lib/easy.c | |
parent | 07a9b89fedaec60bdbc254f23f66149b31d2f8da (diff) | |
download | curl-2bd75e5686b2e6ff3824c4dfb2b6ec86b60f454c.tar.gz |
easy/transfer: fix cookie-disabled build
Follow-up from 45de940cebf6a
Reported-by: Marcel Raad
Fixes #8953
Closes #8954
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c index bd9d695bb..336cada87 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -838,6 +838,7 @@ struct Curl_easy *curl_easy_duphandle(struct Curl_easy *data) outcurl->progress.flags = data->progress.flags; outcurl->progress.callback = data->progress.callback; +#ifndef CURL_DISABLE_COOKIES if(data->cookies) { /* If cookies are enabled in the parent handle, we enable them in the clone as well! */ @@ -856,6 +857,7 @@ struct Curl_easy *curl_easy_duphandle(struct Curl_easy *data) if(!outcurl->state.cookielist) goto fail; } +#endif if(data->state.url) { outcurl->state.url = strdup(data->state.url); @@ -937,8 +939,10 @@ struct Curl_easy *curl_easy_duphandle(struct Curl_easy *data) fail: if(outcurl) { +#ifndef CURL_DISABLE_COOKIES curl_slist_free_all(outcurl->state.cookielist); outcurl->state.cookielist = NULL; +#endif Curl_safefree(outcurl->state.buffer); Curl_dyn_free(&outcurl->state.headerb); Curl_safefree(outcurl->state.url); |