From 68bd8711d2182babe64a880a80d2d5af139a84ff Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 29 May 2014 12:02:25 +0200 Subject: [PATCH] platform/trivial: fix typo in ip6_route_exists() By passing INADDR_ANY as a gconstpointer, we actually always passed NULL as gateway. Maybe this was not intended, but it seems correct now and is proven to work. So this fixe has no behavioral change. Signed-off-by: Thomas Haller --- src/platform/nm-linux-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 3d7c307fb0..2adaf7e60f 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -3397,7 +3397,7 @@ static gboolean ip_route_exists (NMPlatform *platform, int family, int ifindex, gpointer network, int plen, int metric) { auto_nl_object struct nl_object *object = build_rtnl_route ( - family, ifindex, network, plen, INADDR_ANY, metric, 0); + family, ifindex, network, plen, NULL, metric, 0); auto_nl_object struct nl_object *cached_object = nl_cache_search ( choose_cache (platform, object), object);