diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-03-30 00:17:02 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-03-30 07:52:28 +0200 |
commit | 575e885db0f3b2c50434f63269438fe21cbbb978 (patch) | |
tree | 48bd63f9b3ccd9220f0de284de6fd678311f2134 /lib/ftp.c | |
parent | 93935c08c1b85482bc86bd6adcc33c1d924eed5e (diff) |
multi: turn Curl_done into file local multi_done
... as it now is used by multi.c only.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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) { |