Skip to content
Snippets Groups Projects
Unverified Commit 146178a9 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

ConnectionExists: make sure conn->data is set when "taking" a connection

Follow-up to 2c15693a.

Bug #2674
Closes #2675
parent bc5a0b3e
No related branches found
No related tags found
No related merge requests found
......@@ -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! */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment