From a62fc245d01433ed4559db1f6f661a984b2bce03 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 10 Apr 2019 21:57:44 +0200 Subject: nss-resolve: resue a jump target We can reuse "fail" here, since it does the same thing. --- src/nss-resolve/nss-resolve.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/nss-resolve') 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()) { -- cgit v1.2.3