1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Armel Asselin - When the easy handle is removed from the multi while libcurl

is still trying to resolve the host name, it seems that the ftp struct is not
yet initialized, but the removal action calls Curl_done() which calls
Curl_ftp_done. So we simply return success from there if no ftp pointer is
set.
This commit is contained in:
Daniel Stenberg 2006-09-16 20:57:59 +00:00
parent 39e01e9349
commit c001ed53fa

View File

@ -2954,6 +2954,15 @@ CURLcode Curl_ftp_done(struct connectdata *conn, CURLcode status)
char *path_to_use = data->reqdata.path; char *path_to_use = data->reqdata.path;
struct Curl_transfer_keeper *k = &data->reqdata.keep; struct Curl_transfer_keeper *k = &data->reqdata.keep;
if(!ftp)
/* When the easy handle is removed from the multi while libcurl is still
* trying to resolve the host name, it seems that the ftp struct is not
* yet initialized, but the removal action calls Curl_done() which calls
* this function. So we simply return success if no ftp pointer is set.
*/
return CURLE_OK;
if (conn->sec_path) if (conn->sec_path)
path_to_use = conn->sec_path; path_to_use = conn->sec_path;