diff --git a/lib/ftp.c b/lib/ftp.c index 5e418486aa..20b70ce3ed 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -805,7 +805,8 @@ static CURLcode ftp_state_use_port(struct connectdata *conn, host = addr; else host = hbuf; /* use the hbuf for host name */ - }else + } + else /* there was only a port(-range) given, default the host */ host = NULL; } /* data->set.ftpport */