summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-11-26 12:24:18 +0000
committerbz <bz@FreeBSD.org>2008-11-26 12:24:18 +0000
commit3c7e39c29303a42d68c3df83f50a34f321999690 (patch)
tree2b530a3778abf651178395e67941275d44b3dacb /sys/netinet6
parent0ac4e5e1e126bc2990c18356d9b91dcb3787bf56 (diff)
downloadFreeBSD-src-3c7e39c29303a42d68c3df83f50a34f321999690.zip
FreeBSD-src-3c7e39c29303a42d68c3df83f50a34f321999690.tar.gz
Plug a credential leak in case the inpcb is freed by
in6_pcbfree() instead of in_pcbfree(); missed in r183606. Reviewed by: rwatson MFC after: 3 days (instantly for 7.1-RC?)
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6_pcb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
index 724c143..b816fea 100644
--- a/sys/netinet6/in6_pcb.c
+++ b/sys/netinet6/in6_pcb.c
@@ -442,6 +442,7 @@ in6_pcbfree(struct inpcb *inp)
if (inp->inp_moptions != NULL)
inp_freemoptions(inp->inp_moptions);
inp->inp_vflag = 0;
+ crfree(inp->inp_cred);
#ifdef MAC
mac_inpcb_destroy(inp);
#endif
OpenPOWER on IntegriCloud