chiark / gitweb /
core: loopback - correctly fail the loopback_check if somehow the rtnl calls fail
[elogind.git] / src / core / loopback-setup.c
index 0d7d00cfc00eea8109e215c01e028b7aba3160ae..ca10e20a344cdb85980c475d739eecc0bf37ee03 100644 (file)
@@ -63,15 +63,15 @@ static bool check_loopback(sd_rtnl *rtnl) {
 
         r = sd_rtnl_message_new_link(rtnl, &req, RTM_GETLINK, LOOPBACK_IFINDEX);
         if (r < 0)
-                return r;
+                return false;
 
         r = sd_rtnl_call(rtnl, req, 0, &reply);
         if (r < 0)
-                return r;
+                return false;
 
         r = sd_rtnl_message_link_get_flags(reply, &flags);
         if (r < 0)
-                return r;
+                return false;
 
         return flags & IFF_UP;
 }