From: Daniel Stenberg Date: Wed, 31 Oct 2001 20:59:24 +0000 (+0000) Subject: fixed FTPSENDF for ipv6 compiles X-Git-Tag: curl-7_9_1~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=027fc719cc220aa33813a2100ec56c9f8024ab1d;p=thirdparty%2Fcurl.git fixed FTPSENDF for ipv6 compiles --- diff --git a/lib/ftp.c b/lib/ftp.c index 0f6382d7f0..ebbcdfab65 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -987,8 +987,10 @@ CURLcode ftp_use_port(struct connectdata *conn) *q = '\0'; } - FTPSENDF(conn, "%s |%d|%s|%s|", *modep, eprtaf, - portmsgbuf, tmp); + result = Curl_ftpsendf(conn, "%s |%d|%s|%s|", *modep, eprtaf, + portmsgbuf, tmp); + if(result) + return result; } else if (strcmp(*modep, "LPRT") == 0 || strcmp(*modep, "PORT") == 0) { int i; @@ -1035,7 +1037,9 @@ CURLcode ftp_use_port(struct connectdata *conn) } } - FTPSENDF(conn, "%s %s", *modep, portmsgbuf); + result = Curl_ftpsendf(conn, "%s %s", *modep, portmsgbuf); + if(result) + return result; } nread = Curl_GetFTPResponse(buf, conn, &ftpcode);