]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv6/addrconf.c
ipv6: fix the noflags test in addrconf_get_prefix_route
[karo-tx-linux.git] / net / ipv6 / addrconf.c
index 408cac4ae00a41129e4bf89506e96f646c607380..29ba4ff186eb64be1def3a8c97a8447b4781cba4 100644 (file)
@@ -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;