diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-08-26 22:00:01 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-26 22:00:01 +0000 | 
| commit | 6561ec524b93b6aef94442aad5c837dd0c840c3c (patch) | |
| tree | 26f035a2830e25d4ccb9f66b7f959e8eb8985447 /lib | |
| parent | 982c5460f0eb521ce4f9526535e9d122fe8755bd (diff) | |
don't attempt to ftp_cwd() on a NULL path
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ftp.c | 2 | 
1 files changed, 1 insertions, 1 deletions
@@ -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;    }  | 
