cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: conn->proto.ftp == NULL in Curl_ftp_done

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 15 Sep 2006 14:47:49 +0200 (CEST)

On Fri, 15 Sep 2006, Armel Asselin wrote:

>> Can you add/provide a test case that repeats the problem? Or perhaps just
>> show us a patch that fixes it for you?

> near the start of
> CURLcode Curl_ftp_done(struct connectdata *conn, CURLcode status)
>
> add : if (ftp == NULL) return result;
> before any use of 'ftp' variable.

But the fact that 'ftp' is NULL at that point is in itself an error. The
Curl_ftp_done() is called unconditionally after a transfer has been done (from
Curl_done), and at that point there MUST be a SessionHandle struct associated
with the connection.

So, any chance you can stuff the code with some debug code or similar to find
out more details around when this problem occurs?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-09-15