]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ftp: failure to resolve proxy should return that error code
authorDaniel Stenberg <daniel@haxx.se>
Sun, 25 Dec 2016 09:35:34 +0000 (10:35 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 25 Dec 2016 09:35:34 +0000 (10:35 +0100)
lib/ftp.c

index fd77a5acd5c79448bd5b39a82d009fd8d138a939..6a094df08d2d7c238add9eed4dfecbdb84ab7d13 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2000,7 +2000,7 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
 
     if(!addr) {
       failf(data, "Can't resolve proxy host %s:%hu", host_name, connectport);
-      return CURLE_FTP_CANT_GET_HOST;
+      return CURLE_COULDNT_RESOLVE_PROXY;
     }
   }
   else {