mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
ip4_reass: fixed duplicat NULL check
See bug #54197 Rerported-by: Andrey Vinogradov <andrey.vinogradov@teplomonitor.ru> Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
0610b34372
commit
b1487e6480
@ -677,7 +677,8 @@ ip4_reass(struct pbuf *p)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
nullreturn_ipr:
|
nullreturn_ipr:
|
||||||
if ((ipr != NULL) && (ipr->p == NULL)) {
|
LWIP_ASSERT("ipr != NULL", ipr != NULL);
|
||||||
|
if (ipr->p == NULL) {
|
||||||
/* dropped pbuf after creating a new datagram entry: remove the entry, too */
|
/* dropped pbuf after creating a new datagram entry: remove the entry, too */
|
||||||
LWIP_ASSERT("not firstalthough just enqueued", ipr == reassdatagrams);
|
LWIP_ASSERT("not firstalthough just enqueued", ipr == reassdatagrams);
|
||||||
ip_reass_dequeue_datagram(ipr, NULL);
|
ip_reass_dequeue_datagram(ipr, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user