summaryrefslogtreecommitdiff
path: root/sys/src/9/ip
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-03-04 12:07:40 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-03-04 12:07:40 +0100
commit57284d07ca8bf02e4e8afacc5f9fd78f22c281de (patch)
tree4950ac021b3c0dfc78b1ffbd5ffe654ecc94531f /sys/src/9/ip
parente2d310e6235b2f75bd0a1423ea424169247d5ae1 (diff)
devip: ignore reserved fragment offset bits
Diffstat (limited to 'sys/src/9/ip')
-rw-r--r--sys/src/9/ip/ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/ip/ipv6.c b/sys/src/9/ip/ipv6.c
index 406558999..090d33460 100644
--- a/sys/src/9/ip/ipv6.c
+++ b/sys/src/9/ip/ipv6.c
@@ -481,7 +481,7 @@ ip6reassemble(IP* ip, int uflen, Block* bp)
* and get rid of any fragments that might go
* with it.
*/
- if(offset == 0) { /* 1st frag is also last */
+ if((offset & ~6) == 0) { /* 1st frag is also last */
if(f != nil) {
ip->stats[ReasmFails]++;
ipfragfree6(ip, f);