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
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1465,6 +1465,7 @@ ConnectionExists(struct Curl_easy *data,
  if(chosen) {
  if(chosen) {
    /* mark it as used before releasing the lock */
    /* mark it as used before releasing the lock */
    chosen->inuse = TRUE;
    chosen->inuse = TRUE;
    chosen->data = data; /* own it! */
    Curl_conncache_unlock(needle);
    Curl_conncache_unlock(needle);
    *usethis = chosen;
    *usethis = chosen;
    return TRUE; /* yes, we found one to use! */
    return TRUE; /* yes, we found one to use! */