]> granicus.if.org Git - libnl/commitdiff
ROUTE_DIFF result was not used in some place in route_compare
authorКоренберг Марк (ноутбук дома) <socketpair@gmail.com>
Sun, 9 Sep 2012 19:21:52 +0000 (01:21 +0600)
committerКоренберг Марк (дома) <socketpair@gmail.com>
Fri, 19 Oct 2012 16:16:44 +0000 (22:16 +0600)
lib/route/route_obj.c

index 7ea4fffc1318e40d8042af960906a262c3fa86ef..54df023796a0c550d84cb631e629b0cbd7d1998e 100644 (file)
@@ -332,7 +332,7 @@ static int route_compare(struct nl_object *_a, struct nl_object *_b,
                        if (a->rt_metrics_mask & (1 << i) &&
                            (!(b->rt_metrics_mask & (1 << i)) ||
                             a->rt_metrics[i] != b->rt_metrics[i]))
-                               ROUTE_DIFF(METRICS, 1);
+                               diff |= ROUTE_DIFF(METRICS, 1);
                }
 
                diff |= ROUTE_DIFF(FLAGS,