From 1007bad4767cd8716a6523d109f758d6847be520 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Sat, 30 Jan 2016 09:02:50 +0200 Subject: [PATCH] Fix return value on timeout --- ethsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethsock.c b/ethsock.c index 40d992c..5b05bc7 100644 --- a/ethsock.c +++ b/ethsock.c @@ -143,7 +143,7 @@ ssize_t ethsock_recv(struct ethsock *sock, void *buf, size_t len) perror("select"); return -1; } else if (status == 0) { - return 1; + return 0; } } -- 2.25.1