From dc142979d873925c68536954b0eac3829bfb7a32 Mon Sep 17 00:00:00 2001 From: Michal Paszta Date: Thu, 26 Mar 2020 13:45:50 +0200 Subject: [PATCH] LWIP: propagate the apimsg->err out of netconn_apimsg() --- features/lwipstack/lwip/src/api/lwip_api_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/lwipstack/lwip/src/api/lwip_api_lib.c b/features/lwipstack/lwip/src/api/lwip_api_lib.c index d68de99ef2..35a0965ed4 100644 --- a/features/lwipstack/lwip/src/api/lwip_api_lib.c +++ b/features/lwipstack/lwip/src/api/lwip_api_lib.c @@ -130,7 +130,7 @@ netconn_apimsg(tcpip_callback_fn fn, struct api_msg *apimsg) if (sys_tcpip_thread_check()) { fn(apimsg); - return ERR_OK; + return apimsg->err; } else { err = tcpip_send_msg_wait_sem(fn, apimsg, LWIP_API_MSG_SEM(apimsg));