aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-09-30 16:46:47 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-10-31 08:46:35 +0100
commit1833a45dde4d27febfce42813699533b1ae993d1 (patch)
tree0ecb85121d473a15241fb502f6f722274895485a /lib
parentce8d09483eea2fcb1b50e323e1a8ed1f3613b2e3 (diff)
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!
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index d307c4071..f78978d6b 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;
}