Convert if (tp->t_state == TCPS_LISTEN) panic() into a KASSERT.
MFC after: 2 weeks
This commit is contained in:
parent
3e1c732ffa
commit
a65e12b09d
@ -1010,10 +1010,8 @@ after_listen:
|
|||||||
KASSERT(headlocked, ("tcp_input: after_listen: head not locked"));
|
KASSERT(headlocked, ("tcp_input: after_listen: head not locked"));
|
||||||
INP_LOCK_ASSERT(inp);
|
INP_LOCK_ASSERT(inp);
|
||||||
|
|
||||||
/* XXX temp debugging */
|
/* Syncache takes care of sockets in the listen state. */
|
||||||
/* should not happen - syncache should pick up these connections */
|
KASSERT(tp->t_state != TCPS_LISTEN, ("tcp_input: TCPS_LISTEN"));
|
||||||
if (tp->t_state == TCPS_LISTEN)
|
|
||||||
panic("tcp_input: TCPS_LISTEN");
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the second part of the MSS DoS prevention code (after
|
* This is the second part of the MSS DoS prevention code (after
|
||||||
|
@ -1010,10 +1010,8 @@ after_listen:
|
|||||||
KASSERT(headlocked, ("tcp_input: after_listen: head not locked"));
|
KASSERT(headlocked, ("tcp_input: after_listen: head not locked"));
|
||||||
INP_LOCK_ASSERT(inp);
|
INP_LOCK_ASSERT(inp);
|
||||||
|
|
||||||
/* XXX temp debugging */
|
/* Syncache takes care of sockets in the listen state. */
|
||||||
/* should not happen - syncache should pick up these connections */
|
KASSERT(tp->t_state != TCPS_LISTEN, ("tcp_input: TCPS_LISTEN"));
|
||||||
if (tp->t_state == TCPS_LISTEN)
|
|
||||||
panic("tcp_input: TCPS_LISTEN");
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the second part of the MSS DoS prevention code (after
|
* This is the second part of the MSS DoS prevention code (after
|
||||||
|
Loading…
x
Reference in New Issue
Block a user