summaryrefslogtreecommitdiff
path: root/src/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolv')
-rw-r--r--src/resolv/async_resolv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c
index 00aed143..268d266a 100644
--- a/src/resolv/async_resolv.c
+++ b/src/resolv/async_resolv.c
@@ -1080,12 +1080,13 @@ resolv_gethostbyname_dns_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
if (timeouts) {
*timeouts = state->timeouts;
}
+
+ TEVENT_REQ_RETURN_ON_ERROR(req);
+
if (rhostent) {
*rhostent = talloc_steal(mem_ctx, state->rhostent);
}
- TEVENT_REQ_RETURN_ON_ERROR(req);
-
return EOK;
}