diff options
author | Hannah Schierling <hannahreturns@googlemail.com> | 2022-12-25 23:45:01 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-12-26 09:27:39 +0100 |
commit | a5cf4a87cf8647b129f16d34bfa680a045b885cf (patch) | |
tree | 0d8341aa4ae819f5a4b0a11f493e57fc8a99484f | |
parent | 4ab601d93a07cee665ec2458a51fccd0767c03f1 (diff) | |
download | curl-a5cf4a87cf8647b129f16d34bfa680a045b885cf.tar.gz |
url: fix build with `--disable-cookies`
Struct `UserDefined` has no member `cookielist` if
`CURL_DISABLE_COOKIES` is defined.
Follow-up to af5999a
Closes #10158
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -431,7 +431,9 @@ CURLcode Curl_close(struct Curl_easy **datap) Curl_dyn_free(&data->state.headerb); Curl_safefree(data->state.ulbuf); Curl_flush_cookies(data, TRUE); +#ifndef CURL_DISABLE_COOKIES curl_slist_free_all(data->set.cookielist); /* clean up list */ +#endif Curl_altsvc_save(data, data->asi, data->set.str[STRING_ALTSVC]); Curl_altsvc_cleanup(&data->asi); Curl_hsts_save(data, data->hsts, data->set.str[STRING_HSTS]); |