mirror of
https://github.com/curl/curl.git
synced 2026-05-18 19:26:20 +03:00
ConnectionExists: make sure conn->data is set when "taking" a connection
Follow-up to 2c15693.
Bug #2674
Closes #2675
This commit is contained in:
parent
bc5a0b3e9f
commit
146178a9df
1 changed files with 1 additions and 0 deletions
|
|
@ -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! */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue