mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
lwip: init lwip error code
Init the error code to ERR_OK when call tcpip_apimsg
This commit is contained in:
@@ -75,10 +75,11 @@ static err_t netconn_close_shutdown(struct netconn *conn, u8_t how);
|
||||
static err_t
|
||||
tcpip_apimsg(struct api_msg *apimsg)
|
||||
{
|
||||
#ifdef LWIP_DEBUG
|
||||
#if LWIP_DEBUG
|
||||
/* catch functions that don't set err */
|
||||
apimsg->msg.err = ERR_VAL;
|
||||
#endif
|
||||
|
||||
#if LWIP_NETCONN_SEM_PER_THREAD
|
||||
apimsg->msg.op_completed_sem = LWIP_NETCONN_THREAD_SEM_GET();
|
||||
LWIP_ASSERT("netconn semaphore not initialized",
|
||||
|
Reference in New Issue
Block a user