[PATCH 5.1 04/70] ipv6: fix the check before getting the cookie in rt6_get_cookie