]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix checking gateways in route comparison.
authorRoy Marples <roy@marples.name>
Tue, 3 Oct 2017 10:44:39 +0000 (11:44 +0100)
committerRoy Marples <roy@marples.name>
Tue, 3 Oct 2017 10:44:39 +0000 (11:44 +0100)
src/route.c

index 08ac7c058e5ec4e3e11f7633bff7da4199181fa7..09f88736cabe61f8e5f32b1e4ce82314a56c1be6 100644 (file)
@@ -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