]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: Only honor ifindex in IP_PKTINFO if non-0
authorDavid Ahern <dsahern@gmail.com>
Fri, 16 Feb 2018 19:03:03 +0000 (11:03 -0800)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:33:54 +0000 (21:33 -0400)
commita1e57d0bbfdda1fc766d8e8c5a529e4722d6ed60
tree5059c61ff46661195090f7c47cc16d6e97364257
parent2fd462a05b3548b3ff91c8ae2398356d0db61f31
net: Only honor ifindex in IP_PKTINFO if non-0

[ Upstream commit 1cbec07649ec8c267cdfb486ab4ee73949974ca4 ]

Only allow ifindex from IP_PKTINFO to override SO_BINDTODEVICE settings
if the index is actually set in the message.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
net/ipv4/ip_sockglue.c