summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-05-27 08:17:32 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-05-27 08:17:32 +0000
commit14332f808c3174e10546d505a5a7e7828c34c1f8 (patch)
tree5555f583993931d774a5a54fba7782415df312b9
parent081578bee19819baa318866659a79975124dfee0 (diff)
the tcp header might be in a different mbuf after pulldown();
fixes tcp corruption on rl(4); ok itojun, cedric
-rw-r--r--sys/netinet/tcp_input.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index d00eca42322..c1375e9faaa 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.169 2004/05/26 22:47:40 markus Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.170 2004/05/27 08:17:31 markus Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -552,8 +552,6 @@ tcp_input(struct mbuf *m, ...)
}
#endif /* TUBA_INCLUDE */
- th = (struct tcphdr *)(mtod(m, caddr_t) + iphlen);
-
/*
* Check that TCP offset makes sense,
* pull out TCP options and adjust length. XXX