aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 8f47be1eb..65dfa8362 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -773,7 +773,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn, CURLcode status)
path = curl_unescape(conn->path, 0); /* get the "raw" path */
if(!path)
- CURLE_OUT_OF_MEMORY;
+ return CURLE_OUT_OF_MEMORY;
flen = ftp->file?strlen(ftp->file):0; /* file is "raw" already */
dlen = strlen(path)-flen;