mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-12-10 08:46:40 +08:00
tcpip_callback_with_block() can fail with ERR_MEM or ERR_VAL, and in the error paths the code does not post the msg to the mailbox thus the sys_sem_wait() call might wait forever. Fix it by testing return value of tcpip_callback() and return error immediately. Signed-off-by: Axel Lin <axel.lin@ingics.com>