diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-02-08 13:52:38 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-02-08 13:52:38 +0000 |
commit | 7e36c4437e895db51efe92cbe0bb1fdd41981b23 (patch) | |
tree | 6ae58817b687aa5d1ed75e23e4337dc3227475e4 | |
parent | 3c7a80a27533791456cbb8bb7d99eb409375199b (diff) |
today's FTP response check fix
-rw-r--r-- | lib/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -282,7 +282,7 @@ int Curl_GetFTPResponse(int sockfd, char *buf, */ if(CURLE_OK != Curl_read(conn, sockfd, ptr, 1, &keepon)) keepon = FALSE; - else if(keepon < 0) + else if(keepon <= 0) error = SELECT_ERROR; else if ((*ptr == '\n') || (*ptr == '\r')) keepon = FALSE; |