From 499a7d6a37f6e8074b9e4a7a5cc8bfbb8ef75fd7 Mon Sep 17 00:00:00 2001 From: Alexander Alashkin Date: Wed, 9 Nov 2016 13:36:33 +0000 Subject: [PATCH] Fix mg_is_error PUBLISHED_FROM=80481f8dbcb93d04eee51ecc6366949420a61f2f --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index 603cca54..e30122bf 100644 --- a/mongoose.c +++ b/mongoose.c @@ -3036,7 +3036,7 @@ void mg_set_non_blocking_mode(sock_t sock) { static int mg_is_error(int n) { int err = mg_get_errno(); - return n == 0 || (n < 0 && err != EINPROGRESS && err != EWOULDBLOCK + return (n < 0 && err != EINPROGRESS && err != EWOULDBLOCK #ifndef WINCE && err != EAGAIN && err != EINTR #endif