svn commit: r185372 - in releng/7.1/sys: . netinet6
Bjoern A. Zeeb
bz at FreeBSD.org
Thu Nov 27 08:41:47 PST 2008
Author: bz
Date: Thu Nov 27 16:41:46 2008
New Revision: 185372
URL: http://svn.freebsd.org/changeset/base/185372
Log:
MFC: r185332
Plug a credential leak in case the inpcb is freed by
in6_pcbfree() instead of in_pcbfree(); missed in r183606.
Discussed with: re (kib)
Approved by: re (gnn)
Reminded by: rwatson (with his re hat?)
Modified:
releng/7.1/sys/ (props changed)
releng/7.1/sys/netinet6/in6_pcb.c
Modified: releng/7.1/sys/netinet6/in6_pcb.c
==============================================================================
--- releng/7.1/sys/netinet6/in6_pcb.c Thu Nov 27 13:19:42 2008 (r185371)
+++ releng/7.1/sys/netinet6/in6_pcb.c Thu Nov 27 16:41:46 2008 (r185372)
@@ -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-all
mailing list