diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 408cac4ae00a41129e4bf89506e96f646c607380..29ba4ff186eb64be1def3a8c97a8447b4781cba4 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -1877,7 +1877,7 @@ static struct rt6_info *addrconf_get_prefix_route(const struct in6_addr *pfx, continue; if ((rt->rt6i_flags & flags) != flags) continue; - if ((noflags != 0) && ((rt->rt6i_flags & flags) != 0)) + if ((rt->rt6i_flags & noflags) != 0) continue; dst_hold(&rt->dst); break;