Fix newly introduced tcpip_api_call did not return correct return value

This commit is contained in:
Dirk Ziegelmeier 2016-03-22 21:34:05 +01:00
parent c39ef75cb3
commit a1fc91afa8

View File

@ -397,7 +397,7 @@ tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call *call)
sys_sem_free(&call->sem);
#endif /* LWIP_NETCONN_SEM_PER_THREAD */
TCPIP_MSG_VAR_FREE(msg);
return ERR_OK;
return call->err;
}
return ERR_VAL;
#endif /* LWIP_TCPIP_CORE_LOCKING */