summaryrefslogtreecommitdiff
path: root/sys/netinet6/raw_ip6.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-01-10 09:01:19 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-01-10 09:01:19 +0000
commitbcd3bf54bd9195536c3e1176804a585ec29cf333 (patch)
tree12f8297cc13a5d88fa9700a31c4d0565205f89e9 /sys/netinet6/raw_ip6.c
parent37f1b5d5fe9fff46d0b5fffc16c2569ae4b0b749 (diff)
Remove NULL checks before m_free(9), it deals with it.
ok bluhm@, kettenis@
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r--sys/netinet6/raw_ip6.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index 58cb0e34ab7..0bf46188860 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip6.c,v 1.101 2016/12/22 11:04:44 rzalamena Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.102 2017/01/10 09:01:18 mpi Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
@@ -530,8 +530,7 @@ rip6_ctloutput(int op, struct socket *so, int level, int optname,
case MRT6_DEL_MFC:
if (op == PRCO_SETOPT) {
error = ip6_mrouter_set(optname, so, *mp);
- if (*mp)
- (void)m_free(*mp);
+ m_free(*mp);
} else if (op == PRCO_GETOPT)
error = ip6_mrouter_get(optname, so, mp);
else