diff options
author | Howard Chu <hyc@highlandsun.com> | 2010-05-11 22:48:38 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-05-11 22:48:38 +0200 |
commit | bc8fc9803fbd0fa9daf0dba796d42d03faf49120 (patch) | |
tree | edd313accc3ad85ef2b4826f5ffa9e335da86ebd /lib/polarssl.c | |
parent | 016ce4b1daa0f8d44a0da7105e1e1c97531e8b87 (diff) | |
download | curl-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/polarssl.c')
-rw-r--r-- | lib/polarssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/polarssl.c b/lib/polarssl.c index 0027e31e0..285b3ae04 100644 --- a/lib/polarssl.c +++ b/lib/polarssl.c @@ -302,8 +302,8 @@ Curl_polarssl_connect(struct connectdata *conn, } conn->ssl[sockindex].state = ssl_connection_complete; - conn->recv = polarssl_recv; - conn->send = polarssl_send; + conn->recv[sockindex] = polarssl_recv; + conn->send[sockindex] = polarssl_send; /* Save the current session data for possible re-use */ { |