From: Daniel Stenberg Date: Fri, 30 Sep 2016 14:46:47 +0000 (+0200) Subject: ftp: check for previous patch must be case sensitive! X-Git-Tag: curl-7_51_0~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1833a45dde4d27febfce42813699533b1ae993d1;p=thirdparty%2Fcurl.git ftp: check for previous patch must be case sensitive! ... otherwise example.com/PATH and example.com/path would be assumed to be the same and they usually aren't! --- diff --git a/lib/ftp.c b/lib/ftp.c index d307c40715..f78978d6b2 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -4415,7 +4415,7 @@ CURLcode ftp_parse_url_path(struct connectdata *conn) dlen -= ftpc->file?strlen(ftpc->file):0; if((dlen == strlen(ftpc->prevpath)) && - strnequal(path, ftpc->prevpath, dlen)) { + !strncmp(path, ftpc->prevpath, dlen)) { infof(data, "Request has same path as previous transfer\n"); ftpc->cwddone = TRUE; }