diff options
Diffstat (limited to 'lib/nonblock.c')
-rw-r--r-- | lib/nonblock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/nonblock.c b/lib/nonblock.c index b764278..5959281 100644 --- a/lib/nonblock.c +++ b/lib/nonblock.c @@ -58,8 +58,7 @@ int curlx_nonblock(curl_socket_t sockfd, /* operate on this */ flags = sfcntl(sockfd, F_GETFL, 0); if(nonblock) return sfcntl(sockfd, F_SETFL, flags | O_NONBLOCK); - else - return sfcntl(sockfd, F_SETFL, flags & (~O_NONBLOCK)); + return sfcntl(sockfd, F_SETFL, flags & (~O_NONBLOCK)); #elif defined(HAVE_IOCTL_FIONBIO) |