1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

don't attempt to ftp_cwd() on a NULL path

This commit is contained in:
Daniel Stenberg 2002-08-26 22:00:01 +00:00
parent 982c5460f0
commit 6561ec524b

View File

@ -1928,7 +1928,7 @@ CURLcode ftp_perform(struct connectdata *conn,
/* This is a re-used connection. Since we change directory to where the
transfer is taking place, we must now get back to the original dir
where we ended up after login: */
if (conn->bits.reuse) {
if (conn->bits.reuse && ftp->entrypath) {
if ((result = ftp_cwd(conn, ftp->entrypath)) != CURLE_OK)
return result;
}