]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Feb 2018 21:42:17 +0000 (16:42 -0500)
commita012a92163b5cc28c028286ed65dc1d62ed45b4a
tree40486285e2433d9ceb26485f1351d19d099bd997
parentcec795f99cfcffe8e8a5e683dcfa6a6002cd5080
net: Only honor ifindex in IP_PKTINFO if non-0

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>
net/ipv4/ip_sockglue.c