diff --git a/src/net.c b/src/net.c index 0d04a4ad3..af456cba9 100644 --- a/src/net.c +++ b/src/net.c @@ -77,6 +77,7 @@ timeout_connect(int s, const struct sockaddr *name, socklen_t namelen, int flags, optval; int ret; + flags = 0; if (timeout != -1) { flags = fcntl(s, F_GETFL, 0); if (fcntl(s, F_SETFL, flags | O_NONBLOCK) == -1)