summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);