aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 80841ee37..59fc1157a 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1142,7 +1142,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
below */
Curl_printable_address(ai, myhost, sizeof(myhost));
-#ifdef PF_INET6
+#ifdef ENABLE_IPV6
if(!conn->bits.ftp_use_eprt && conn->bits.ipv6)
/* EPRT is disabled but we are connected to a IPv6 host, so we ignore the
request and enable EPRT again! */
@@ -1163,11 +1163,13 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
case AF_INET:
port = ntohs(sa4->sin_port);
break;
+#ifdef ENABLE_IPV6
case AF_INET6:
port = ntohs(sa6->sin6_port);
break;
+#endif
default:
- break;
+ continue; /* might as well skip this */
}
if(EPRT == fcmd) {