diff options
author | 2015-09-11 22:00:36 +0000 | |
---|---|---|
committer | 2015-09-11 22:00:36 +0000 | |
commit | 6959f1403a057277e20df8685e9ec0d12697c14b (patch) | |
tree | 08fac1d2cea1d345e9ee5a7bf2466ad0e86ed78e | |
parent | Instead of printing errno strings here and there, add a logerrorx() (diff) | |
download | wireguard-openbsd-6959f1403a057277e20df8685e9ec0d12697c14b.tar.xz wireguard-openbsd-6959f1403a057277e20df8685e9ec0d12697c14b.zip |
Bad whatever, that if_put() should not be there. Found the hard way by deraadt@
OK mpi@
-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 a99e0596849..add6c62a814 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: icmp6.c,v 1.170 2015/09/11 19:42:45 dlg Exp $ */ +/* $OpenBSD: icmp6.c,v 1.171 2015/09/11 22:00:36 claudio Exp $ */ /* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */ /* @@ -405,7 +405,6 @@ icmp6_input(struct mbuf **mp, int *offp, int proto) IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off, sizeof(*icmp6)); if (icmp6 == NULL) { icmp6stat.icp6s_tooshort++; - if_put(ifp); return IPPROTO_DONE; } code = icmp6->icmp6_code; |