From 575e885db0f3b2c50434f63269438fe21cbbb978 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 30 Mar 2016 00:17:02 +0200 Subject: multi: turn Curl_done into file local multi_done ... as it now is used by multi.c only. --- lib/ftp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/ftp.c') diff --git a/lib/ftp.c b/lib/ftp.c index 9b728cc98..2999e2a3b 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -3242,7 +3242,7 @@ static CURLcode ftp_connect(struct connectdata *conn, * Input argument is already checked for validity. */ static CURLcode ftp_done(struct connectdata *conn, CURLcode status, - bool premature) + bool premature) { struct SessionHandle *data = conn->data; struct FTP *ftp = data->req.protop; @@ -3256,11 +3256,6 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status, const char *path_to_use = data->state.path; 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; switch(status) { -- cgit v1.2.3