diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2005-06-01 12:03:18 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2005-06-01 12:03:18 +0000 |
| commit | 1e2d989d0de2cbe03b3206de23fcb483ff0bdf85 (patch) | |
| tree | d69278f3674a790fb9e913f9afae4572f122ac2a /sys/netinet/tcp_input.c | |
| parent | 416738a781e0e204ddd455fb43622b620ad5e735 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_input.c')
| -rw-r--r-- | sys/netinet/tcp_input.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 739261025cb0..dcc79cb4d0f1 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1054,6 +1054,9 @@ after_listen: inet_ntoa(inp->inp_inc.inc_faddr), inp->inp_inc.inc_fport, tp->rcv_byps / tp->rcv_pps); + KASSERT(headlocked, ("tcp_input: " + "after_listen: tcp_drop: head " + "not locked")); tp = tcp_drop(tp, ECONNRESET); tcpstat.tcps_minmssdrops++; goto drop; @@ -1341,8 +1344,11 @@ after_listen: goto dropwithreset; } if (thflags & TH_RST) { - if (thflags & TH_ACK) + if (thflags & TH_ACK) { + KASSERT(headlocked, ("tcp_input: after_listen" + ": tcp_drop.2: head not locked")); tp = tcp_drop(tp, ECONNREFUSED); + } goto drop; } if ((thflags & TH_SYN) == 0) @@ -1738,6 +1744,8 @@ trimthenstep6: * error and we send an RST and drop the connection. */ if (thflags & TH_SYN) { + KASSERT(headlocked, ("tcp_input: tcp_drop: trimthenstep6: " + "head not locked")); tp = tcp_drop(tp, ECONNRESET); rstreason = BANDLIM_UNLIMITED; goto drop; |
