summaryrefslogtreecommitdiffstats
path: root/src/nss-resolve
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-04-10 21:57:44 +0200
committerLennart Poettering <lennart@poettering.net>2019-04-11 11:13:10 +0200
commita62fc245d01433ed4559db1f6f661a984b2bce03 (patch)
tree156f7dbb1b4326f6ef82c894b041b9f5ff61e5e0 /src/nss-resolve
parentnss-resolve: return error properly (diff)
downloadsystemd-a62fc245d01433ed4559db1f6f661a984b2bce03.tar.xz
systemd-a62fc245d01433ed4559db1f6f661a984b2bce03.zip
nss-resolve: resue a jump target
We can reuse "fail" here, since it does the same thing.
Diffstat (limited to 'src/nss-resolve')
-rw-r--r--src/nss-resolve/nss-resolve.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nss-resolve/nss-resolve.c b/src/nss-resolve/nss-resolve.c
index 65efcab385..3cfc20851d 100644
--- a/src/nss-resolve/nss-resolve.c
+++ b/src/nss-resolve/nss-resolve.c
@@ -502,10 +502,8 @@ enum nss_status _nss_resolve_gethostbyaddr2_r(
}
if (len != FAMILY_ADDRESS_SIZE(af)) {
- UNPROTECT_ERRNO;
- *errnop = EINVAL;
- *h_errnop = NO_RECOVERY;
- return NSS_STATUS_UNAVAIL;
+ r = -EINVAL;
+ goto fail;
}
if (avoid_deadlock()) {