1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Convert if (tp->t_state == TCPS_LISTEN) panic() into a KASSERT.

MFC after:	2 weeks
This commit is contained in:
Robert Watson 2005-10-19 09:37:52 +00:00
parent 3e1c732ffa
commit a65e12b09d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151464
2 changed files with 4 additions and 8 deletions

View File

@ -1010,10 +1010,8 @@ tcp_input(m, off0)
KASSERT(headlocked, ("tcp_input: after_listen: head not locked"));
INP_LOCK_ASSERT(inp);
/* XXX temp debugging */
/* should not happen - syncache should pick up these connections */
if (tp->t_state == TCPS_LISTEN)
panic("tcp_input: TCPS_LISTEN");
/* Syncache takes care of sockets in the listen state. */
KASSERT(tp->t_state != TCPS_LISTEN, ("tcp_input: TCPS_LISTEN"));
/*
* This is the second part of the MSS DoS prevention code (after

View File

@ -1010,10 +1010,8 @@ tcp_input(m, off0)
KASSERT(headlocked, ("tcp_input: after_listen: head not locked"));
INP_LOCK_ASSERT(inp);
/* XXX temp debugging */
/* should not happen - syncache should pick up these connections */
if (tp->t_state == TCPS_LISTEN)
panic("tcp_input: TCPS_LISTEN");
/* Syncache takes care of sockets in the listen state. */
KASSERT(tp->t_state != TCPS_LISTEN, ("tcp_input: TCPS_LISTEN"));
/*
* This is the second part of the MSS DoS prevention code (after