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

Commit 4ba09f85 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "l2tp_ppp: Fix Protocol in PPP Frame"

parents d709492b f4c85bb2
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -180,6 +180,12 @@ static int pppol2tp_recv_payload_hook(struct sk_buff *skb)
	if ((skb->data[0] == PPP_ALLSTATIONS) && (skb->data[1] == PPP_UI))
	if ((skb->data[0] == PPP_ALLSTATIONS) && (skb->data[1] == PPP_UI))
		skb_pull(skb, 2);
		skb_pull(skb, 2);


	if (skb->len >= 1 && skb->data[0] & 1)
		*(u8 *)skb_push(skb, 1) = 0;

	if (skb->len < 2)
		return 1;

	return 0;
	return 0;
}
}