mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
nss-resolve: simplify error handling
Handle general errors from the resolved call in _nss_resolve_gethostbyaddr2_r() the same say as in the other variants: Just "goto fail" as that does exactly the same.
This commit is contained in:
@@ -558,9 +558,7 @@ enum nss_status _nss_resolve_gethostbyaddr2_r(
|
||||
goto fallback;
|
||||
|
||||
|
||||
*errnop = -r;
|
||||
*h_errnop = NO_RECOVERY;
|
||||
return NSS_STATUS_UNAVAIL;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
r = sd_bus_message_enter_container(reply, 'a', "(is)");
|
||||
|
||||
Reference in New Issue
Block a user