diff options
author | Thomas Haller <thaller@redhat.com> | 2014-05-29 12:02:25 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-05-30 18:38:49 +0200 |
commit | 68bd8711d2182babe64a880a80d2d5af139a84ff (patch) | |
tree | 614ca9963713e194ec416c13116b85e4f0bdeb0e | |
parent | fad5472b343f89ce384c61e6cb40016880b9b70c (diff) | |
download | NetworkManager-68bd8711d2182babe64a880a80d2d5af139a84ff.tar.gz |
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 <thaller@redhat.com>
-rw-r--r-- | src/platform/nm-linux-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |