From 867254ea7c2b193fecf8cd36cc6e5dc53c290d92 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 29 Jun 2012 20:12:44 +0200 Subject: Imported Upstream version 0.9.5.95 --- src/nm-netlink-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nm-netlink-utils.c') diff --git a/src/nm-netlink-utils.c b/src/nm-netlink-utils.c index 99aebcb8..be8c17ed 100644 --- a/src/nm-netlink-utils.c +++ b/src/nm-netlink-utils.c @@ -136,7 +136,7 @@ nm_netlink_route_new (int ifindex, route = rtnl_route_alloc (); g_return_val_if_fail (route != NULL, NULL); - if (ifindex >= 0) + if (ifindex > 0) rtnl_route_set_oif (route, ifindex); if (family != AF_UNSPEC) rtnl_route_set_family (route, family); @@ -385,7 +385,7 @@ foreach_route_cb (struct nl_object *object, void *user_data) if (nm_logging_level_enabled (LOGL_DEBUG)) dump_route (route); - if ( info->ifindex >= 0 + if ( info->ifindex > 0 && rtnl_route_get_oif (route) != info->ifindex) return; -- cgit 1.3.0-6-gf8a5