summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-05 21:21:26 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-06 09:54:54 +0200
commitf93455eb04b57b2d002244bed1f0b59b94c2f0c7 (patch)
treea403a1dffdc45c2b37fa33a69f1aa0af3b1bb52c /lib/url.c
parent8ca54a03ea08a7b0cf0a402018f329bd93124216 (diff)
downloadcurl-f93455eb04b57b2d002244bed1f0b59b94c2f0c7.tar.gz
altsvc: clone setting in curl_easy_duphandlebagder/altsvc-duphandle
The cache content is not duplicated, like other caches, but the setting and specified file name are. Test 1908 is extended to verify this somewhat. Since the duplicated handle gets the same file name, the test unfortunately overwrites the same file twice (with different contents) which makes it hard to check automatically. Closes #5923
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/url.c b/lib/url.c
index 2f02a0a16..b3884572d 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -391,11 +391,8 @@ CURLcode Curl_close(struct Curl_easy **datap)
Curl_dyn_free(&data->state.headerb);
Curl_safefree(data->state.ulbuf);
Curl_flush_cookies(data, TRUE);
-#ifdef USE_ALTSVC
Curl_altsvc_save(data, data->asi, data->set.str[STRING_ALTSVC]);
- Curl_altsvc_cleanup(data->asi);
- data->asi = NULL;
-#endif
+ Curl_altsvc_cleanup(&data->asi);
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH)
Curl_http_auth_cleanup_digest(data);
#endif