mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-28 14:54:05 +00:00
IPV6_REASS: fix ip6_reass_remove_oldest_datagram() when the first fragment to enqueue has more pbufs than IP_REASS_MAX_PBUFS
This commit is contained in:
parent
5eb1c411a5
commit
aad76acb68
@ -227,6 +227,10 @@ ip6_reass_remove_oldest_datagram(struct ip6_reassdata *ipr, int pbufs_needed)
|
|||||||
}
|
}
|
||||||
r = r->next;
|
r = r->next;
|
||||||
}
|
}
|
||||||
|
if (oldest == ipr) {
|
||||||
|
/* nothing to free, ipr is the only element on the list */
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (oldest != NULL) {
|
if (oldest != NULL) {
|
||||||
ip6_reass_free_complete_datagram(oldest);
|
ip6_reass_free_complete_datagram(oldest);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user