Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2008 22:36:35 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r185350 - in stable/7/sys: . netinet6
Message-ID:  <200811262236.mAQMaZsm068357@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811262236.mAQMaZsm068357>