Skip to contentSkip to conversation

Fix the route object comparison using the wrong pointer

PATCH RESEND New Thomas Jarosch 1 participant 1 message Dec 1, 2011 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 Fix the route object comparison using the wrong pointer

Typo detected by cppcheck

---
 lib/route/route_obj.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/route/route_obj.c +1 -1
index 4e14d6d..8f1d4d5 100644
@@ -403,7 +403,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 */
Signature · 6 lines
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html