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:
Martin Pitt 2016-09-16 10:57:06 +02:00
parent 5fd2c135f1
commit 46c7a7ac87

View file

@ -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)");