summaryrefslogtreecommitdiff
path: root/lib/gtls.c
diff options
context:
space:
mode:
authorHoward Chu <hyc@highlandsun.com>2010-05-11 22:48:38 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-05-11 22:48:38 +0200
commitbc8fc9803fbd0fa9daf0dba796d42d03faf49120 (patch)
treeedd313accc3ad85ef2b4826f5ffa9e335da86ebd /lib/gtls.c
parent016ce4b1daa0f8d44a0da7105e1e1c97531e8b87 (diff)
downloadcurl-bc8fc9803fbd0fa9daf0dba796d42d03faf49120.tar.gz
sendrecv: make them two pairs of send/recv to properly deal with FTPS
FTP(S) use two connections that can be set to different recv and send functions independently, so by introducing recv+send pairs in the same manner we already have sockets/connections we can work with FTPS fine. This commit fixes the FTPS regression introduced in change d64bd82.
Diffstat (limited to 'lib/gtls.c')
-rw-r--r--lib/gtls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gtls.c b/lib/gtls.c
index 2cb1fae41..99be073a0 100644
--- a/lib/gtls.c
+++ b/lib/gtls.c
@@ -633,8 +633,8 @@ gtls_connect_step3(struct connectdata *conn,
infof(data, "\t MAC: %s\n", ptr);
conn->ssl[sockindex].state = ssl_connection_complete;
- conn->recv = gtls_recv;
- conn->send = gtls_send;
+ conn->recv[sockindex] = gtls_recv;
+ conn->send[sockindex] = gtls_send;
{
/* we always unconditionally get the session id here, as even if we