cvs commit: src/sys/netipsec keysock.c
Bjoern A. Zeeb
bz at FreeBSD.org
Fri Nov 16 14:35:39 PST 2007
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
More information about the cvs-src
mailing list