summaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-06-02 15:45:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-06-02 22:54:12 +0200
commit2bd75e5686b2e6ff3824c4dfb2b6ec86b60f454c (patch)
treebaa197b3b32445886a893e7d367ef93e44f3a85f /lib/transfer.c
parent07a9b89fedaec60bdbc254f23f66149b31d2f8da (diff)
downloadcurl-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/transfer.c')
-rw-r--r--lib/transfer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 27eec8a46..01f764ac5 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1422,10 +1422,11 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
else
data->state.infilesize = 0;
+#ifndef CURL_DISABLE_COOKIES
/* If there is a list of cookie files to read, do it now! */
if(data->state.cookielist)
Curl_cookie_loadfiles(data);
-
+#endif
/* If there is a list of host pairs to deal with */
if(data->state.resolve)
result = Curl_loadhostpairs(data);