diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-04-28 00:31:49 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-04-28 00:31:49 +0000 |
commit | f0f986d825ec5368d4a0b671bf45f636b640f553 (patch) | |
tree | 92e5d9878d4bbb367ada4342dea6d3412dfce925 /sys/netinet/tcp_input.c | |
parent | a1c3af2ee57534696a5f482166acb8adca02cce3 (diff) |
actually m_adj tries to drop tcp header part. it is better to
touch tcp header before m_adj, than the other way around.
(no behavior change with the current m_adj code, new code is safer against
any future m_adj changes)
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 1138982f3d9..1ed40938e1b 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.59 2000/04/27 20:53:08 provos Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.60 2000/04/28 00:31:48 itojun Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -893,11 +893,11 @@ findpcb: * Drop TCP, IP headers and TCP options then add data * to socket buffer. */ - m_adj(m, iphlen + off); if (th->th_flags & TH_PUSH) tp->t_flags |= TF_ACKNOW; else tp->t_flags |= TF_DELACK; + m_adj(m, iphlen + off); sbappend(&so->so_rcv, m); sorwakeup(so); return; |