cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem using FTPS through HTTP Proxy (crash in cURL library)

From: Armel Asselin <asselin.armel_at_wanadoo.fr>
Date: Wed, 13 Sep 2006 10:39:35 +0200

> Ok, the patch from Marcos Rotcha works for me perfectly. Send and
> receive files without any problem. :)
no more problems... but no more _data_ encryption ?

> The curl version used is 7.15.5.
>
> the "diff -u" patch
> ------------------------------------------------------------------------------------------------------
> --- curl-7.15.5/lib/sendf.c 2006-07-14 20:31:20.000000000 +0200
> +++ ./sendf.c 2006-09-13 09:13:05.000000000 +0200
> @@ -324,7 +324,7 @@
> CURLcode retcode;
> int num = (sockfd == conn->sock[SECONDARYSOCKET]);
>
> - if (conn->ssl[num].use)
> + if (conn->ssl[num].use && conn->ssl[num].handle != 0) {
> /* only TRUE if SSL enabled */
> bytes_written = Curl_ssl_send(conn, num, mem, len);
> else {
> @@ -452,7 +452,7 @@
>
> *n=0; /* reset amount to zero */
>
> - if(conn->ssl[num].use) {
> + if (conn->ssl[num].use && conn->ssl[num].handle != 0) {
> nread = Curl_ssl_recv(conn, num, buf, buffersize);
>
> if(nread == -1)
Received on 2006-09-13