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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to