Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91dce7dd authored by Bradley Peterson's avatar Bradley Peterson Committed by David S. Miller
Browse files

pptp: Accept packet with seq zero



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

Signed-off-by: default avatarBradley Peterson <despite@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5b7bf42e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: