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

Commit 8bae8bd6 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

pptp: fix skb leak in pptp_xmit()



In case we cant transmit skb, we must free it

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
CC: Dmitry Kozlov <xeb@mail.ru>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4d97480b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -285,8 +285,10 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)
	ip_send_check(iph);

	ip_local_out(skb);
	return 1;

tx_error:
	kfree_skb(skb);
	return 1;
}