Fix return value on timeout

This commit is contained in:
Joseph C. Lehner 2016-01-30 09:02:50 +02:00
parent 6058284b37
commit 1007bad476

View file

@ -143,7 +143,7 @@ ssize_t ethsock_recv(struct ethsock *sock, void *buf, size_t len)
perror("select"); perror("select");
return -1; return -1;
} else if (status == 0) { } else if (status == 0) {
return 1; return 0;
} }
} }