From: Roy Marples Date: Tue, 3 Oct 2017 10:44:39 +0000 (+0100) Subject: Fix checking gateways in route comparison. X-Git-Tag: v7.0.0-rc3~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b8e8a74863f5e8989fe99ded33c420570e1b957;p=thirdparty%2Fdhcpcd.git Fix checking gateways in route comparison. --- diff --git a/src/route.c b/src/route.c index 08ac7c05..09f88736 100644 --- a/src/route.c +++ b/src/route.c @@ -418,7 +418,7 @@ rt_cmp(const struct rt *r1, const struct rt *r2) #ifdef HAVE_ROUTE_METRIC r1->rt_metric == r2->rt_metric && #endif - sa_cmp(&r1->rt_gateway, &r1->rt_gateway) == 0); + sa_cmp(&r1->rt_gateway, &r2->rt_gateway) == 0); } static bool