aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 45ec88ba4..6dfbdc943 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -700,12 +700,14 @@ CURLcode Curl_ftp_fdset(struct connectdata *conn,
struct FTP *ftp = conn->proto.ftp;
curl_socket_t sockfd = conn->sock[FIRSTSOCKET];
- if(ftp->sendleft)
+ if(ftp->sendleft) {
/* write mode */
FD_SET(sockfd, write_fd_set);
- else
+ }
+ else {
/* read mode */
FD_SET(sockfd, read_fd_set);
+ }
if((int)sockfd > *max_fdp)
*max_fdp = (int)sockfd;