mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-11 10:13:48 +00:00
Early exit when checking if ip6 reassembled packet is valid.
This commit is contained in:
parent
34531a8160
commit
8c95422204
@ -443,7 +443,7 @@ ip6_reass(struct pbuf *p)
|
||||
/* Final validity test: no gaps between current and last fragment. */
|
||||
iprh_prev = iprh;
|
||||
q = iprh->next_pbuf;
|
||||
while (q != NULL) {
|
||||
while ((q != NULL) && valid) {
|
||||
iprh = (struct ip6_reass_helper*)q->payload;
|
||||
if (iprh_prev->end != iprh->start) {
|
||||
valid = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user