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:
parent
5fd2c135f1
commit
46c7a7ac87
|
@ -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)");
|
||||
|
|
Loading…
Reference in a new issue