summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2000-04-27 20:53:09 +0000
committerNiels Provos <provos@cvs.openbsd.org>2000-04-27 20:53:09 +0000
commit9054c1d0a83edfba25548a3ea71fe37e0f7d4d2a (patch)
treed497afe8099d0688ba8e3a7598544ed13da4d091
parent454315cca8beb825ac177bda7c5b2907d69e49e5 (diff)
mbuf is freed by sbappend(), move the references to th up. found by art@
-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 c5663d4dce3..1138982f3d9 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.58 2000/04/14 04:20:57 itojun Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.59 2000/04/27 20:53:08 provos Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -894,12 +894,12 @@ findpcb:
* to socket buffer.
*/
m_adj(m, iphlen + off);
- sbappend(&so->so_rcv, m);
- sorwakeup(so);
if (th->th_flags & TH_PUSH)
tp->t_flags |= TF_ACKNOW;
else
tp->t_flags |= TF_DELACK;
+ sbappend(&so->so_rcv, m);
+ sorwakeup(so);
return;
}
}