summaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-10 10:56:20 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-10 14:32:06 +0200
commitaecce3551cbb62a7980e8d22b40eabc091f896a0 (patch)
tree205d81293861c3f1fc7297cac9d1b806d998b04f /lib/vtls
parent421cf55ab2dda8ca870edba620ef8674bf70c0f3 (diff)
downloadcurl-aecce3551cbb62a7980e8d22b40eabc091f896a0.tar.gz
ftp: don't do ssl_shutdown instead of ssl_close
The shutdown function is for downgrading a connection from TLS to plain, and this is not requested here. Have ssl_close reset the TLS connection state. This partially reverts commit f002c850d98d Reported-by: Rasmus Melchior Jacobsen Reported-by: Denis Goleshchikhin Fixes #5797
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/vtls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c
index c3a55fb1c..281043aa6 100644
--- a/lib/vtls/vtls.c
+++ b/lib/vtls/vtls.c
@@ -621,6 +621,7 @@ void Curl_ssl_close(struct connectdata *conn, int sockindex)
{
DEBUGASSERT((sockindex <= 1) && (sockindex >= -1));
Curl_ssl->close_one(conn, sockindex);
+ conn->ssl[sockindex].state = ssl_connection_none;
}
CURLcode Curl_ssl_shutdown(struct connectdata *conn, int sockindex)