diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2007-12-21 14:25:43 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2007-12-21 14:25:43 +0000 |
| commit | 5c1368a7243978761479cb07b26a26d103f8f6e0 (patch) | |
| tree | 1f151952c9f7395c3207f2ac9aa22f894e377854 /sys/netinet6 | |
| parent | 3dc9a55575f4073ac770a737864e5e595e4e6764 (diff) | |
Notes
Diffstat (limited to 'sys/netinet6')
| -rw-r--r-- | sys/netinet6/in6_pcb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index f21a0f67ee1e..d81c6f20c6a5 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -65,6 +65,7 @@ #include "opt_inet.h" #include "opt_inet6.h" #include "opt_ipsec.h" +#include "opt_mac.h" #include <sys/param.h> #include <sys/systm.h> @@ -105,6 +106,8 @@ #include <netipsec/key.h> #endif /* IPSEC */ +#include <security/mac/mac_framework.h> + struct in6_addr zeroin6_addr; int @@ -433,6 +436,9 @@ in6_pcbfree(struct inpcb *inp) if (inp->inp_moptions != NULL) inp_freemoptions(inp->inp_moptions); inp->inp_vflag = 0; +#ifdef MAC + mac_destroy_inpcb(inp); +#endif INP_UNLOCK(inp); uma_zfree(ipi->ipi_zone, inp); } |
