cvs commit: src/sys/netipsec keysock.c

Bjoern A. Zeeb bz at
Tue Nov 20 01:35:16 PST 2007

bz          2007-11-20 09:35:15 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/netipsec         keysock.c 
  MFC: rev. 1.20 sys/netipsec/keysock.c
      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.
  Approved by: re (kensmith)
  Revision  Changes    Path  +6 -6      src/sys/netipsec/keysock.c

More information about the cvs-src mailing list