aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-04-15 16:41:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-04-16 00:16:25 +0200
commit6cfbf21acfd3ddeb87cea10a06dd6190e838f662 (patch)
tree53e238c795767da63526fca10bc6b6181f7d0fd1
parent72da9219420ab15c3723ae2af9681d201400d56c (diff)
Curl_ssl_shutdown: restore send/recv pointers
When going back from SSL, put the send/recv function pointers back to the plain versions. Bug: http://curl.haxx.se/mail/lib-2011-04/0070.html Reported by: Mehmet Bozkurt
-rw-r--r--lib/sslgen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c
index b614e086d..a1b65ae74 100644
--- a/lib/sslgen.c
+++ b/lib/sslgen.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -393,6 +393,9 @@ CURLcode Curl_ssl_shutdown(struct connectdata *conn, int sockindex)
conn->ssl[sockindex].use = FALSE; /* get back to ordinary socket usage */
conn->ssl[sockindex].state = ssl_connection_none;
+ conn->recv[sockindex] = Curl_recv_plain;
+ conn->send[sockindex] = Curl_send_plain;
+
return CURLE_OK;
}