From fa912042be37bf0af0bac9031e8d4c200196c3a8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 22 Jun 2018 00:13:29 +0200 Subject: ConnectionExists: make sure conn->data is set when "taking" a connection Follow-up to 2c15693. Fixes #2674 --- lib/url.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/url.c b/lib/url.c index 0cab0a303..f1a6e8db4 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! */ -- cgit v1.2.1