]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
pptp: Accept packet with seq zero
authorBradley Peterson <despite@gmail.com>
Thu, 12 Jan 2012 10:39:16 +0000 (10:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jan 2012 04:05:28 +0000 (20:05 -0800)
Initialize the PPTP "seq received" value to 0xffffffff, so we don't
ignore packets with seq zero.

Signed-off-by: Bradley Peterson <despite@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/pptp.c

index c1c9293c2bbf1eecd638d8d6e428777951cdff9d..df884dde2a511c27b95db1edef5848886b6c9abd 100644 (file)
@@ -585,8 +585,8 @@ static int pptp_create(struct net *net, struct socket *sock)
        po = pppox_sk(sk);
        opt = &po->proto.pptp;
 
        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:
 
        error = 0;
 out: