diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-08-22 10:33:23 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-08-22 10:33:23 +0000 |
commit | 1fd9a929e6d2ad9f4ee609809ba4ffcdb53011a4 (patch) | |
tree | a6461a976d05ce192b585855bd2a13189e13f6c1 /sys/netinet6/raw_ip6.c | |
parent | 43b309c717d69973637c2f73a3c7e12a6b2c78ab (diff) |
Sizes for free(9) from David Hill.
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r-- | sys/netinet6/raw_ip6.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index 2cdcfa59082..0cbf2306804 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_ip6.c,v 1.94 2016/08/04 20:46:24 vgross Exp $ */ +/* $OpenBSD: raw_ip6.c,v 1.95 2016/08/22 10:33:22 mpi Exp $ */ /* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */ /* @@ -631,10 +631,9 @@ rip6_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, if (so == ip6_mrouter) ip6_mrouter_done(); #endif - if (in6p->inp_icmp6filt) { - free(in6p->inp_icmp6filt, M_PCB, 0); - in6p->inp_icmp6filt = NULL; - } + free(in6p->inp_icmp6filt, M_PCB, sizeof(struct icmp6_filter)); + in6p->inp_icmp6filt = NULL; + in_pcbdetach(in6p); break; |