nss-resolve: return error properly

This commit is contained in:
Lennart Poettering
2019-04-11 11:13:10 +02:00
parent 954cba660d
commit c7c468c92a
+1 -1
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;