summaryrefslogtreecommitdiffstats
path: root/sock_stuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'sock_stuff.c')
-rw-r--r--sock_stuff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sock_stuff.c b/sock_stuff.c
index 8a06135..43fdf0e 100644
--- a/sock_stuff.c
+++ b/sock_stuff.c
@@ -224,6 +224,8 @@ int check_fd(int fd, fd_mode fdm, unsigned int timeout)
case FD_EXCEPT:
sret = select(fd+1,NULL,NULL,&fds,&to);
break;
+ default:
+ return -1;
}
if (sret < 0) {