diff --git a/lib/ftp.c b/lib/ftp.c
index e9165e7003c0bfb5fd53df902d96535a439de4a8..8cff5c66a4acb69c92c567d8326353f352d80c04 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2060,6 +2060,7 @@ CURLcode Curl_ftp(struct connectdata *conn)
 
   /* the ftp struct is already inited in ftp_connect() */
   ftp = conn->proto.ftp;
+  conn->size = -1; /* make sure this is unknown at this point */
 
   /* We split the path into dir and file parts *before* we URLdecode
      it */