1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Assert that sockets passed into soabort() not be SQ_COMP or SQ_INCOMP,

since that removal should have been done a layer up.

MFC after:	3 months
This commit is contained in:
Robert Watson 2006-04-23 18:15:54 +00:00
parent 89ddbd45e5
commit 0cec9959e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157987

View File

@ -559,8 +559,10 @@ soabort(so)
* is as close as we can get for now.
*/
KASSERT(so->so_count == 0, ("soabort: so_count"));
KASSERT(!(so->so_state & SS_PROTOREF), ("soabort: SS_PROTOREF"));
KASSERT((so->so_state & SS_PROTOREF) == 0, ("soabort: SS_PROTOREF"));
KASSERT(so->so_state & SS_NOFDREF, ("soabort: !SS_NOFDREF"));
KASSERT((so->so_state & SQ_COMP) == 0, ("soabort: SQ_COMP"));
KASSERT((so->so_state & SQ_INCOMP) == 0, ("soabort: SQ_INCOMP"));
(*so->so_proto->pr_usrreqs->pru_abort)(so);
ACCEPT_LOCK();