[systemd-commits] src/core

Tom Gundersen tomegun at kemper.freedesktop.org
Mon Dec 29 04:08:46 PST 2014


 src/core/loopback-setup.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 2f0af4e120385e6078c96189f4a4d0cce0e12a3a
Author: Tom Gundersen <teg at jklm.no>
Date:   Mon Dec 29 13:05:45 2014 +0100

    core: loopback - correctly fail the loopback_check if somehow the rtnl calls fail

diff --git a/src/core/loopback-setup.c b/src/core/loopback-setup.c
index 0d7d00c..ca10e20 100644
--- a/src/core/loopback-setup.c
+++ b/src/core/loopback-setup.c
@@ -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;
 }



More information about the systemd-commits mailing list