mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
l2tp: avoid use-after-free caused by l2tp_ip_backlog_recv
am: 837786cbbb
Change-Id: I50cc6eec703138b7b7e9163ae7424f541947be1c
This commit is contained in:
@@ -388,7 +388,7 @@ static int l2tp_ip_backlog_recv(struct sock *sk, struct sk_buff *skb)
|
||||
drop:
|
||||
IP_INC_STATS(sock_net(sk), IPSTATS_MIB_INDISCARDS);
|
||||
kfree_skb(skb);
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Userspace will call sendmsg() on the tunnel socket to send L2TP
|
||||
|
||||
Reference in New Issue
Block a user