summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-11-08 22:59:22 +0000
committerSam Leffler <sam@FreeBSD.org>2003-11-08 22:59:22 +0000
commitc29afad67362d34f518fb9c296dafa94544bd505 (patch)
treebd94a2c78786d58254f94cedcab8ba90eab44e4d /sys/netinet/tcp_input.c
parent2a0746208b144d29320e34296c47ccd3fa7a14c6 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 21d530f58419..97f7f3c823e9 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -2348,9 +2348,6 @@ dropwithreset:
&tcp_savetcp, 0);
#endif
- if (tp)
- INP_UNLOCK(inp);
-
if (thflags & TH_ACK)
/* mtod() below is safe as long as hdr dropping is delayed */
tcp_respond(tp, mtod(m, void *), th, m, (tcp_seq)0, th->th_ack,
@@ -2362,6 +2359,9 @@ dropwithreset:
tcp_respond(tp, mtod(m, void *), th, m, th->th_seq+tlen,
(tcp_seq)0, TH_RST|TH_ACK);
}
+
+ if (tp)
+ INP_UNLOCK(inp);
if (headlocked)
INP_INFO_WUNLOCK(&tcbinfo);
return;