aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-26 22:00:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-26 22:00:01 +0000
commit6561ec524b93b6aef94442aad5c837dd0c840c3c (patch)
tree26f035a2830e25d4ccb9f66b7f959e8eb8985447 /lib
parent982c5460f0eb521ce4f9526535e9d122fe8755bd (diff)
don't attempt to ftp_cwd() on a NULL path
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 dd10ad41c..11378b909 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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;
}