summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2020-01-14 12:57:23 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2020-01-14 12:57:30 +0900
commit2bc404e2483a44682b92f805bffe056b77a61800 (patch)
tree61eadf897e5d6d3bfbcb3fc22a659cc03edc04b8
parent6356fec82b754d29234d04927e0538ddf4b91569 (diff)
downloadcurl-tizen_4.0_base.tar.gz
curl-tizen_4.0_base.tar.bz2
curl-tizen_4.0_base.zip
Regression from b46cfbc (7.59.0) CVE-2018-16840 Reported-by: Brian Carpenter (Geeknik Labs) Bug: https://curl.haxx.se/docs/CVE-2018-16840.html Change-Id: I32bebd2dec9846a2176b1eb0d92ae473b3c01f83
-rw-r--r--lib/url.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 6d9d4205b..654b94a63 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -409,10 +409,12 @@ CURLcode Curl_close(struct Curl_easy *data)
and detach this handle from there. */
curl_multi_remove_handle(data->multi, data);
- if(data->multi_easy)
+ if(data->multi_easy) {
/* when curl_easy_perform() is used, it creates its own multi handle to
use and this is the one */
curl_multi_cleanup(data->multi_easy);
+ data->multi_easy = NULL;
+ }
/* Destroy the timeout list that is held in the easy handle. It is
/normally/ done by curl_multi_remove_handle() but this is "just in