summaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-12-09 12:03:05 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-12-09 17:17:42 +0100
commitc7bc689fc3d32534426612a3654cd1c804831091 (patch)
tree12670376f6732245cf603ae3b38f70c8cd220ec1 /lib/multi.c
parent35c7aac3c61190a4d63a7f0bbbe45e4dd09ba4af (diff)
downloadcurl-c7bc689fc3d32534426612a3654cd1c804831091.tar.gz
conn: always set bits.close with connclose()
Closes #4690
Diffstat (limited to 'lib/multi.c')
-rwxr-xr-xlib/multi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 1fa6b092b..cc11ea617 100755
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -639,7 +639,7 @@ static CURLcode multi_done(struct Curl_easy *data,
) || conn->bits.close
|| (premature && !(conn->handler->flags & PROTOPT_STREAM))) {
CURLcode res2;
- conn->bits.close = TRUE; /* forcibly prevents reuse */
+ connclose(conn, "disconnecting");
CONN_UNLOCK(data);
res2 = Curl_disconnect(data, conn, premature);