summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-09-16 10:57:06 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2016-10-01 16:43:29 +0200
commit46c7a7ac874fd97e28d8d7e0be15f2bf15b2a430 (patch)
tree3277a3e9c6cb5cf86541b996d179868a2f6485f1 /src
parent5fd2c135f1fd6b5147de54531940f398c6213b0c (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/nss-resolve/nss-resolve.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nss-resolve/nss-resolve.c b/src/nss-resolve/nss-resolve.c
index 5ce10f1cbd..5db83e5d0e 100644
--- a/src/nss-resolve/nss-resolve.c
+++ b/src/nss-resolve/nss-resolve.c
@@ -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)");