diff options
author | 2000-04-28 00:31:48 +0000 | |
---|---|---|
committer | 2000-04-28 00:31:48 +0000 | |
commit | fec2273e7b557df38ba91e1e885f7b7179de3709 (patch) | |
tree | cd6c801ab43c3e9ea454670aceb32719e522faad /sys/netinet/tcp_input.c | |
parent | man page matching command, better (diff) | |
download | wireguard-openbsd-fec2273e7b557df38ba91e1e885f7b7179de3709.tar.xz wireguard-openbsd-fec2273e7b557df38ba91e1e885f7b7179de3709.zip |
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; |