diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ip6_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ip6_input.c b/src/ip6_input.c index d88d1ab..a83e4f8 100644 --- a/src/ip6_input.c +++ b/src/ip6_input.c @@ -44,7 +44,7 @@ void ip6_input(struct mbuf *m) goto bad; } - if (ntohs(ip6->ip_pl) > slirp->if_mtu) { + if (ntohs(ip6->ip_pl) + sizeof(struct ip6) > slirp->if_mtu) { icmp6_send_error(m, ICMP6_TOOBIG, 0); goto bad; } |