mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 23:29:25 +00:00
Fixed bug #38586
This commit is contained in:
parent
796098e4c9
commit
9809f1ff66
@ -80,6 +80,9 @@ HISTORY
|
||||
|
||||
++ Bugfixes:
|
||||
|
||||
2013-04-24: Simon Goldschmidt (patch by Emil Ljungdahl):
|
||||
* netif.c: fixed bug #38586 netif_loop_output() "deadlocks"
|
||||
|
||||
2013-01-15: Simon Goldschmidt
|
||||
* ip4.c: fixed bug #37665 ip_canforward operates on address in wrong byte order
|
||||
|
||||
|
@ -719,7 +719,7 @@ netif_loop_output(struct netif *netif, struct pbuf *p,
|
||||
for (last = r; last->next != NULL; last = last->next);
|
||||
|
||||
SYS_ARCH_PROTECT(lev);
|
||||
if(netif->loop_first != NULL) {
|
||||
if (netif->loop_first != NULL) {
|
||||
LWIP_ASSERT("if first != NULL, last must also be != NULL", netif->loop_last != NULL);
|
||||
netif->loop_last->next = r;
|
||||
netif->loop_last = last;
|
||||
@ -735,7 +735,7 @@ netif_loop_output(struct netif *netif, struct pbuf *p,
|
||||
|
||||
#if LWIP_NETIF_LOOPBACK_MULTITHREADING
|
||||
/* For multithreading environment, schedule a call to netif_poll */
|
||||
tcpip_callback((tcpip_callback_fn)netif_poll, netif);
|
||||
tcpip_callback_with_block((tcpip_callback_fn)netif_poll, netif, 0);
|
||||
#endif /* LWIP_NETIF_LOOPBACK_MULTITHREADING */
|
||||
|
||||
return ERR_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user