diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2019-06-21 18:45:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-24 20:18:49 +0300 |
commit | 3401bfb1638efdd0b721d03c51c48171a0cde8c6 (patch) | |
tree | 8bc561fc73f4cd6e3d29c5dd617390cdaf7944a9 /net/ipv6/esp6_offload.c | |
parent | ef11209d421976fe0990b43dbf91e2d6918813d0 (diff) | |
download | linux-3401bfb1638efdd0b721d03c51c48171a0cde8c6.tar.xz |
ipv6/route: Don't match on fc_nh_id if not set in ip6_route_del()
If fc_nh_id isn't set, we shouldn't try to match against it. This
actually matters just for the RTF_CACHE below (where this case is
already handled): if iproute2 gets a route exception and tries to
delete it, it won't reference it by fc_nh_id, even if a nexthop
object might be associated to the originating route.
Fixes: 5b98324ebe29 ("ipv6: Allow routes to use nexthop objects")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/esp6_offload.c')
0 files changed, 0 insertions, 0 deletions