]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make sure that either inp is NULL or we have obtained a lock on it before
authorKen Smith <kensmith@FreeBSD.org>
Mon, 10 Sep 2007 14:49:32 +0000 (14:49 +0000)
committerKen Smith <kensmith@FreeBSD.org>
Mon, 10 Sep 2007 14:49:32 +0000 (14:49 +0000)
commita258946554be9e893820818dfdc62a20f6d1d8ad
tree4573fae84c25741911abf72eef788c07742a1363
parentf5514f084eda7dbc445aba1f6a2b71a8140eae10
Make sure that either inp is NULL or we have obtained a lock on it before
jumping to dropunlock to avoid a panic.  While here move the calls to
ipsec4_in_reject() and ipsec6_in_reject() so they are after we obtain
the lock on inp.

Original patch to avoid panic: pjd
Review of locking adjustments: gnn, sam
Approved by: re (rwatson)
sys/netinet/tcp_input.c