Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2007 22:35:33 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netipsec keysock.c
Message-ID:  <200711162235.lAGMZX09078211@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
bz          2007-11-16 22:35:33 UTC

  FreeBSD src repository

  Modified files:
    sys/netipsec         keysock.c 
  Log:
  Move the priv check before the malloc call for so_pcb.
  In case attach fails because of the priv check we leaked the
  memory and left so_pcb as fodder for invariants.
  
  Reported  by:   Pawel Worach
  Reviewed by:    rwatson
  
  Revision  Changes    Path
  1.20      +6 -6      src/sys/netipsec/keysock.c



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