nss-resolve: return error properly

This commit is contained in:
Lennart Poettering 2019-04-10 21:27:16 +02:00
parent 954cba660d
commit c7c468c92a

View file

@ -571,7 +571,7 @@ enum nss_status _nss_resolve_gethostbyaddr2_r(
r = sd_bus_message_rewind(reply, false);
if (r < 0)
return r;
goto fail;
if (c <= 0)
goto not_found;