Skip to contentSkip to conversation

pptp: Accept packet with seq zero

PATCH Applied Bradley Peterson 2 participants 2 messages Jan 12, 2012 – Jan 13, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pptp: Accept packet with seq zero

Initialize the PPTP "seq received" value to 0xffffffff, so we don't ignore packets with seq zero.

---
 drivers/net/ppp/pptp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ppp/pptp.c +2 -2
index c1c9293..df884dd 100644
@@ -585,8 +585,8 @@ static int pptp_create(struct net *net, struct socket *sock)
 	po = pppox_sk(sk);
 	opt = &po->proto.pptp;
 
-	opt->seq_sent = 0; opt->seq_recv = 0;
-	opt->ack_recv = 0; opt->ack_sent = 0;
+	opt->seq_sent = 0; opt->seq_recv = 0xffffffff;
+	opt->ack_recv = 0; opt->ack_sent = 0xffffffff;
 
 	error = 0;
 out:
Signature · 1 line
1.7.4.4