svn commit: r185332 - head/sys/netinet6

Bjoern A. Zeeb bz at FreeBSD.org
Wed Nov 26 04:24:19 PST 2008


Author: bz
Date: Wed Nov 26 12:24:18 2008
New Revision: 185332
URL: http://svn.freebsd.org/changeset/base/185332

Log:
  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?)

Modified:
  head/sys/netinet6/in6_pcb.c

Modified: head/sys/netinet6/in6_pcb.c
==============================================================================
--- head/sys/netinet6/in6_pcb.c	Wed Nov 26 09:46:35 2008	(r185331)
+++ head/sys/netinet6/in6_pcb.c	Wed Nov 26 12:24:18 2008	(r185332)
@@ -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


More information about the svn-src-all mailing list