From: Daniel Stenberg Date: Thu, 21 Jun 2018 22:13:29 +0000 (+0200) Subject: ConnectionExists: make sure conn->data is set when "taking" a connection X-Git-Tag: curl-7_61_0~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=146178a9df83de1cfc345771b4c6eceb21ea700e;p=thirdparty%2Fcurl.git ConnectionExists: make sure conn->data is set when "taking" a connection Follow-up to 2c15693. Bug #2674 Closes #2675 --- diff --git a/lib/url.c b/lib/url.c index 0cab0a303d..f1a6e8db48 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1465,6 +1465,7 @@ ConnectionExists(struct Curl_easy *data, if(chosen) { /* mark it as used before releasing the lock */ chosen->inuse = TRUE; + chosen->data = data; /* own it! */ Curl_conncache_unlock(needle); *usethis = chosen; return TRUE; /* yes, we found one to use! */