diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-08-16 11:34:35 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-17 14:33:09 +0200 |
commit | 3c9e021f86872baae412a427e807fbfa2f3e8a22 (patch) | |
tree | 13f8dcd7655ead28abee32bbca8b8783335f4d2b /lib/urldata.h | |
parent | 687908c6e6332b2bf4ba74b271e795f9c65a5a61 (diff) | |
download | curl-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/urldata.h')
-rw-r--r-- | lib/urldata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 8ddb580c8..0ae926927 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1300,7 +1300,7 @@ struct UrlState { /* buffers to store authentication data in, as parsed from input options */ struct curltime keeps_speed; /* for the progress meter really */ - struct connectdata *lastconnect; /* The last connection, NULL if undefined */ + long lastconnect_id; /* The last connection, -1 if undefined */ struct dynbuf headerb; /* buffer to store headers in */ char *buffer; /* download buffer */ |