diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-09-05 21:21:26 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-09-06 09:54:54 +0200 |
commit | f93455eb04b57b2d002244bed1f0b59b94c2f0c7 (patch) | |
tree | a403a1dffdc45c2b37fa33a69f1aa0af3b1bb52c /lib/altsvc.h | |
parent | 8ca54a03ea08a7b0cf0a402018f329bd93124216 (diff) | |
download | curl-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/altsvc.h')
-rw-r--r-- | lib/altsvc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/altsvc.h b/lib/altsvc.h index df2750493..1aeb625ab 100644 --- a/lib/altsvc.h +++ b/lib/altsvc.h @@ -61,7 +61,7 @@ CURLcode Curl_altsvc_load(struct altsvcinfo *asi, const char *file); CURLcode Curl_altsvc_save(struct Curl_easy *data, struct altsvcinfo *asi, const char *file); CURLcode Curl_altsvc_ctrl(struct altsvcinfo *asi, const long ctrl); -void Curl_altsvc_cleanup(struct altsvcinfo *altsvc); +void Curl_altsvc_cleanup(struct altsvcinfo **altsvc); CURLcode Curl_altsvc_parse(struct Curl_easy *data, struct altsvcinfo *altsvc, const char *value, enum alpnid srcalpn, const char *srchost, @@ -74,5 +74,6 @@ bool Curl_altsvc_lookup(struct altsvcinfo *asi, #else /* disabled */ #define Curl_altsvc_save(a,b,c) +#define Curl_altsvc_cleanup(x) #endif /* CURL_DISABLE_HTTP || USE_ALTSVC */ #endif /* HEADER_CURL_ALTSVC_H */ |