Skip to content

Commit dc14297

Browse files
LWIP: propagate the apimsg->err out of netconn_apimsg()
1 parent b5f00bc commit dc14297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/lwipstack/lwip/src/api/lwip_api_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ netconn_apimsg(tcpip_callback_fn fn, struct api_msg *apimsg)
130130

131131
if (sys_tcpip_thread_check()) {
132132
fn(apimsg);
133-
return ERR_OK;
133+
return apimsg->err;
134134
} else {
135135
err = tcpip_send_msg_wait_sem(fn, apimsg, LWIP_API_MSG_SEM(apimsg));
136136

0 commit comments

Comments
 (0)