Merge pull request #12704 from michalpasztamobica/lwip_apimsg_err

LWIP: propagate the apimsg->err out of netconn_apimsg()
pull/12712/head
Anna Bridge 2020-03-27 14:04:27 +00:00 committed by GitHub
commit abaf612ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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));