Browse Source

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>
STABLE-2_1_x
Simon Goldschmidt 8 years ago
parent
commit
b1487e6480
  1. 3
      src/core/ipv4/ip4_frag.c

3
src/core/ipv4/ip4_frag.c

@ -677,7 +677,8 @@ ip4_reass(struct pbuf *p)
return NULL;
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 */
LWIP_ASSERT("not firstalthough just enqueued", ipr == reassdatagrams);
ip_reass_dequeue_datagram(ipr, NULL);

Loading…
Cancel
Save