summaryrefslogtreecommitdiff
path: root/lib/conncache.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-07-20 23:24:47 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-07-22 21:17:27 +0200
commit81377cace6a047308008d36740042231d6c7d122 (patch)
treed5bda7d76db96ccabc3b6e092eaab6924a1a3509 /lib/conncache.c
parent6d13432bfa1097da7efb4a5fffac27a22af2002c (diff)
downloadcurl-81377cace6a047308008d36740042231d6c7d122.tar.gz
vtls: set conn->data when closing TLS
Follow-up to 1b76c38904f0. The VTLS backends that close down the TLS layer for a connection still needs a Curl_easy handle for the session_id cache etc. Fixes #2764 Closes #2771
Diffstat (limited to 'lib/conncache.c')
-rw-r--r--lib/conncache.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/conncache.c b/lib/conncache.c
index 957ced3c7..6fbf3b1d2 100644
--- a/lib/conncache.c
+++ b/lib/conncache.c
@@ -314,7 +314,6 @@ void Curl_conncache_remove_conn(struct connectdata *conn, bool lock)
if(lock) {
CONN_LOCK(data);
}
- conn->data = NULL; /* detach */
bundle_remove_conn(bundle, conn);
if(bundle->num_connections == 0)
conncache_remove_bundle(connc, bundle);