diff options
author | Tom Gundersen <teg@jklm.no> | 2014-12-29 13:05:45 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-12-29 13:07:03 +0100 |
commit | 2f0af4e120385e6078c96189f4a4d0cce0e12a3a (patch) | |
tree | f22dd84bc7c7a6d460c51c86c8b2a35b26bffa27 /src | |
parent | 315a73d97f277bfbb32170d0a5e2d259198a6838 (diff) |
core: loopback - correctly fail the loopback_check if somehow the rtnl calls fail
Diffstat (limited to 'src')
-rw-r--r-- | src/core/loopback-setup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/loopback-setup.c b/src/core/loopback-setup.c index 0d7d00cfc0..ca10e20a34 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; } |