X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fftp-basic.c;h=836f77e9c5f7dead390459c8ef9a6fdfd41aafe3;hp=5084aae64c3c2e1e43da6aa64d1da7b468df53e1;hb=542c54998548cddcaeb8c9f43952a4d5a96aaedb;hpb=7ae38d431e08a747b06935822f25f0acc24c14d9 diff --git a/src/ftp-basic.c b/src/ftp-basic.c index 5084aae6..836f77e9 100644 --- a/src/ftp-basic.c +++ b/src/ftp-basic.c @@ -756,9 +756,6 @@ ftp_epsv (int csock, ip_address *ip, int *port) DEBUGP(("respline is %s\n", respline)); - /* Parse the response. */ - s = respline; - /* Skip the useless stuff and get what's inside the parentheses */ start = strchr (respline, '('); if (start == NULL) @@ -804,7 +801,7 @@ ftp_epsv (int csock, ip_address *ip, int *port) return FTPINVPASV; } - if (*s++ != ')') + if (*s != ')') { xfree (respline); return FTPINVPASV;