Skip to content
Permalink
Browse files

Update ftp.c

  • Loading branch information...
Zenju committed Sep 11, 2019
1 parent e509425 commit be293c41f44ab8beb7430183fbe2a0b4fd24282e
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/ftp.c
@@ -3183,7 +3183,7 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
ftpc->prevpath = NULL; /* no path remembering */
}
else {
size_t flen = ftpc->file?strlen(ftpc->file):0; /* file is "raw" already */
size_t flen = ftpc->file?strlen(ftpc->file):0; /* file already "raw" */
size_t dlen = strlen(path)-flen;
if(!ftpc->cwdfail) {
ftpc->prevmethod = data->set.ftp_filemethod;
@@ -3209,7 +3209,7 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
}
}
}

/* free the dir tree and file parts */
freedirs(ftpc);

0 comments on commit be293c4

Please sign in to comment.
You can’t perform that action at this time.