summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-16 11:34:35 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-17 14:33:09 +0200
commit3c9e021f86872baae412a427e807fbfa2f3e8a22 (patch)
tree13f8dcd7655ead28abee32bbca8b8783335f4d2b /lib/url.c
parent687908c6e6332b2bf4ba74b271e795f9c65a5a61 (diff)
downloadcurl-3c9e021f86872baae412a427e807fbfa2f3e8a22.tar.gz
Curl_easy: remember last connection by id, not by pointer
CVE-2020-8231 Bug: https://curl.haxx.se/docs/CVE-2020-8231.html Reported-by: Marc Aldorasi Closes #5824
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index a98aab27f..150667aa9 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -630,7 +630,7 @@ CURLcode Curl_open(struct Curl_easy **curl)
Curl_initinfo(data);
/* most recent connection is not yet defined */
- data->state.lastconnect = NULL;
+ data->state.lastconnect_id = -1;
data->progress.flags |= PGRS_HIDE;
data->state.current_speed = -1; /* init to negative == impossible */