Skip to content
Permalink
Browse files

create_conn: mark conn as in use before added to conncache

  • Loading branch information...
bagder committed Dec 2, 2017
1 parent d09f147 commit 3dee4fcf7765f197dc03d237f6c56b0a33b1b6d6
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/url.c
@@ -4526,6 +4526,9 @@ static CURLcode create_conn(struct Curl_easy *data,
goto out;
}
else {
/* Mark the connection as used, before we add it */
conn->inuse = TRUE;

/*
* This is a brand new connection, so let's store it in the connection
* cache of ours!
@@ -4553,9 +4556,6 @@ static CURLcode create_conn(struct Curl_easy *data,
#endif
}

/* Mark the connection as used */
conn->inuse = TRUE;

/* Setup and init stuff before DO starts, in preparing for the transfer. */
Curl_init_do(data, conn);

0 comments on commit 3dee4fc

Please sign in to comment.
You can’t perform that action at this time.