cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Issue with FTP CCC command

From: Mehmet Bozkurt <mehmet.bozkurt_at_xware.se>
Date: Mon, 18 Apr 2011 08:45:36 +0200

On 2011-04-15 16:45, Daniel Stenberg wrote:
> On Fri, 15 Apr 2011, Mehmet Bozkurt wrote:
>
>> I expressed my self poorly in my first post regarding this issue.
>> There are of course not two sockets, the difference is if the
>> subsequent send to the server (after CCC and SSL shutdown) goes
>> through Curl_send_plain or ossl_send. Using the later causes a crash
>> after CCC has been handled. I've made a patch that fixes this, so now
>> it works for me.
>
> Is your fix similar to the attached patch?
>
> I tried to repeat the problem, but once I got my FTP server to do SSL
> properly it turned out it doesn't support CCC so then I decided to just
> read the code and try a fix "blindly". I'll appreciate feedback on how
> it works!
>
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

Your fix is similar to mine. I put the fptr assignments outside the
function though, after an OK has been returned. I haven't tested your
particular fix but I am sure it works as well.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-18