diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/resolv/async_resolv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c index 00aed1434..268d266a4 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; } |