From bc8120c86422461fe34afa6303c47bbb0cd5bb99 Mon Sep 17 00:00:00 2001 From: sg Date: Thu, 27 Aug 2015 21:43:42 +0200 Subject: [PATCH] Add another sanity check for bug #41009 --- src/core/ipv6/ip6_frag.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/ipv6/ip6_frag.c b/src/core/ipv6/ip6_frag.c index bfff50c2..e670e3da 100644 --- a/src/core/ipv6/ip6_frag.c +++ b/src/core/ipv6/ip6_frag.c @@ -112,6 +112,11 @@ ip6_reass_tmr(void) { struct ip6_reassdata *r, *tmp; +#if !IPV6_FRAG_COPYHEADER + LWIP_ASSERT("sizeof(struct ip6_reass_helper) <= IP6_FRAG_HLEN, set IP6_FRAG_COPYHEADER to 1", + sizeof(struct ip6_reass_helper) <= IP6_FRAG_HLEN); +#endif /* !IPV6_FRAG_COPYHEADER */ + r = reassdatagrams; while (r != NULL) { /* Decrement the timer. Once it reaches 0,