diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-02-17 23:01:48 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-02-18 07:49:21 +0100 |
commit | 14916a82e23c22e1f3d3ebbd90421eb747480e99 (patch) | |
tree | 12adec5225ec862e7f330da1539e0d37e3aba105 /lib/url.c | |
parent | 330f133224af18c65b9325d9b6502e07b4f09f6b (diff) |
altsvc: make saving the cache an atomic operation
... by writing the file to temp name then rename to the final when done.
Assisted-by: Jay Satiro
Fixes #4936
Closes #4942
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -380,7 +380,7 @@ CURLcode Curl_close(struct Curl_easy **datap) Curl_safefree(data->state.ulbuf); Curl_flush_cookies(data, TRUE); #ifdef USE_ALTSVC - Curl_altsvc_save(data->asi, data->set.str[STRING_ALTSVC]); + Curl_altsvc_save(data, data->asi, data->set.str[STRING_ALTSVC]); Curl_altsvc_cleanup(data->asi); data->asi = NULL; #endif |