summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichele Baldessari <michele@acksyn.org>2012-08-28 20:28:28 +0200
committerThomas Graf <tgraf@redhat.com>2012-08-29 12:00:24 +0200
commit8222519f85921595b4f36e4dde927fcc677a4afb (patch)
tree83023797c03922ae65b323fc3db5eb2467589432 /lib
parent25d640da4a132f36ba28791e96b856cdcb899528 (diff)
downloadlibnl-8222519f85921595b4f36e4dde927fcc677a4afb.tar.gz
Fix the always false if (a->rt_nr_nh != a->rt_nr_nh) test
Fix the always false if (a->rt_nr_nh != a->rt_nr_nh) test and compare properly the a and b structs
Diffstat (limited to 'lib')
-rw-r--r--lib/route/route_obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/route_obj.c b/lib/route/route_obj.c
index 685a926..40a157e 100644
--- a/lib/route/route_obj.c
+++ b/lib/route/route_obj.c
@@ -335,7 +335,7 @@ static int route_compare(struct nl_object *_a, struct nl_object *_b,
diff |= ROUTE_DIFF(FLAGS,
(a->rt_flags ^ b->rt_flags) & b->rt_flag_mask);
} else {
- if (a->rt_nr_nh != a->rt_nr_nh)
+ if (a->rt_nr_nh != b->rt_nr_nh)
goto nh_mismatch;
/* search for a dup in each nh of a */