From 6561ec524b93b6aef94442aad5c837dd0c840c3c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 26 Aug 2002 22:00:01 +0000 Subject: don't attempt to ftp_cwd() on a NULL path --- lib/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ftp.c') 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; } -- cgit v1.2.3