From 92cdc1e33fccaa2934372d010e04eeff2ab77819 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 2 Dec 2010 07:07:18 +0000 Subject: [PATCH] Fixed ERR_IS_FATAL so that ERR_WOULDBLOCK is not fatal. --- CHANGELOG | 3 +++ src/include/lwip/err.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 32659dd0..ce6f2e07 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -233,6 +233,9 @@ HISTORY ++ Bugfixes: + 2010-11-20: Simon Goldschmidt + * err.h: Fixed ERR_IS_FATAL so that ERR_WOULDBLOCK is not fatal. + 2010-11-20: Simon Goldschmidt * sockets.c: Fixed bug #31590: getsockopt(... SO_ERROR ...) gives EINPROGRESS after a successful nonblocking connection. diff --git a/src/include/lwip/err.h b/src/include/lwip/err.h index b35ae75f..2e34561d 100644 --- a/src/include/lwip/err.h +++ b/src/include/lwip/err.h @@ -58,7 +58,7 @@ typedef s8_t err_t; #define ERR_VAL -6 /* Illegal value. */ #define ERR_WOULDBLOCK -7 /* Operation would block. */ -#define ERR_IS_FATAL(e) ((e) < ERR_VAL) +#define ERR_IS_FATAL(e) ((e) < ERR_WOULDBLOCK) #define ERR_ABRT -8 /* Connection aborted. */ #define ERR_RST -9 /* Connection reset. */