diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2004-03-25 14:01:21 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2004-03-25 14:01:21 +0000 |
commit | d9b5405819a8c0c5d66787c16869ef0654d76cf2 (patch) | |
tree | 493fcd73801e72600033abf54b77df2359d237b7 | |
parent | e8141ee437f381ac72b9755aa15eeb6126e4505f (diff) |
Don't use mbuf pointer in error case, when it has been set to NULL.
From Patrick Latifi. ok markus@, henning@, deraadt@
-rw-r--r-- | sys/netinet6/icmp6.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index d4627ff69ce..51b157e8e34 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: icmp6.c,v 1.81 2004/02/15 11:16:08 markus Exp $ */ +/* $OpenBSD: icmp6.c,v 1.82 2004/03/25 14:01:20 dhartmei Exp $ */ /* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */ /* @@ -443,7 +443,6 @@ icmp6_input(mp, offp, proto) IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off, sizeof(*icmp6)); if (icmp6 == NULL) { icmp6stat.icp6s_tooshort++; - icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_error); return IPPROTO_DONE; } code = icmp6->icmp6_code; |