summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2010-09-26 07:04:44 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2010-09-26 07:04:44 +0000
commit77464d347f317bbeaca4e0c08ad068552c147866 (patch)
tree13b6c334ae1e991bb48a06da0953ec6736d715f5
parenta3f0a56ebd61cda58935eca6269c844133eb2b4a (diff)
Length field in L2TP header was broken.
-rw-r--r--sys/net/pipex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/pipex.c b/sys/net/pipex.c
index 8c70235e5a5..3dc7be85c6e 100644
--- a/sys/net/pipex.c
+++ b/sys/net/pipex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pipex.c,v 1.10 2010/09/24 14:50:30 hsuenaga Exp $ */
+/* $OpenBSD: pipex.c,v 1.11 2010/09/26 07:04:43 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -1902,7 +1902,6 @@ pipex_l2tp_output(struct mbuf *m0, struct pipex_session *session)
if (pipex_session_is_l2tp_data_sequencing_on(session)) {
seq = (struct pipex_l2tp_seq_header *)(l2tp + 1);
l2tp->flagsver |= PIPEX_L2TP_FLAG_SEQUENCE;
- l2tp->length += sizeof(struct pipex_l2tp_seq_header);
seq->ns = htons(session->proto.l2tp.ns_nxt);
session->proto.l2tp.ns_nxt++;
session->proto.l2tp.ns_gap++;