diff --git a/net/ipv6/route.c b/net/ipv6/route.c index bcb2d442d6526d584d589f8a3da29ba52a3a78bc..039435f73d0f6570aa4bc9f9e024083c0574c72f 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2214,7 +2214,7 @@ static struct dst_entry *rt6_check(struct rt6_info *rt, { u32 rt_cookie = 0; - if ((from && !fib6_get_cookie_safe(from, &rt_cookie)) || + if (!from || !fib6_get_cookie_safe(from, &rt_cookie) || rt_cookie != cookie) return NULL;