Skip to content

Commit abaf612

Browse files
authored
Merge pull request #12704 from michalpasztamobica/lwip_apimsg_err
LWIP: propagate the apimsg->err out of netconn_apimsg()
2 parents 292a1b9 + dc14297 commit abaf612

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)