diff options
Diffstat (limited to 'src/nm-route-manager.c')
-rw-r--r-- | src/nm-route-manager.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nm-route-manager.c b/src/nm-route-manager.c index 18781c6918..5af0b9175c 100644 --- a/src/nm-route-manager.c +++ b/src/nm-route-manager.c @@ -941,8 +941,11 @@ nm_route_manager_ip6_route_sync (NMRouteManager *self, int ifindex, const GArray gboolean nm_route_manager_route_flush (NMRouteManager *self, int ifindex) { - return nm_route_manager_ip4_route_sync (self, ifindex, NULL, FALSE, TRUE) - && nm_route_manager_ip6_route_sync (self, ifindex, NULL, FALSE, TRUE); + bool success = TRUE; + + success &= (bool) nm_route_manager_ip4_route_sync (self, ifindex, NULL, FALSE, TRUE); + success &= (bool) nm_route_manager_ip6_route_sync (self, ifindex, NULL, FALSE, TRUE); + return success; } /*********************************************************************************************/ |