svn commit: r185350 - in stable/7/sys: . netinet6
Bjoern A. Zeeb
bz at FreeBSD.org
Wed Nov 26 14:36:35 PST 2008
Author: bz
Date: Wed Nov 26 22:36:35 2008
New Revision: 185350
URL: http://svn.freebsd.org/changeset/base/185350
Log:
MFC: r185332
Plug a credential leak in case the inpcb is freed by
in6_pcbfree() instead of in_pcbfree(); missed in r183606.
Approved by: re (gnn)
Modified:
stable/7/sys/ (props changed)
stable/7/sys/netinet6/in6_pcb.c
Modified: stable/7/sys/netinet6/in6_pcb.c
==============================================================================
--- stable/7/sys/netinet6/in6_pcb.c Wed Nov 26 22:33:55 2008 (r185349)
+++ stable/7/sys/netinet6/in6_pcb.c Wed Nov 26 22:36:35 2008 (r185350)
@@ -437,6 +437,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_destroy_inpcb(inp);
#endif
More information about the svn-src-stable-7
mailing list