diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-16 23:31:09 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-18 19:45:23 +0100 |
commit | 34029fb3030e20a546f5d3a84c194dbe137fb912 (patch) | |
tree | ffec8cc244aa4f45aff31dcfd3b52dff66f7cb0c | |
parent | ad3d04f100c1e0c2fbd372110b2180ea00b252a6 (diff) | |
download | sssd-34029fb3030e20a546f5d3a84c194dbe137fb912.tar.gz sssd-34029fb3030e20a546f5d3a84c194dbe137fb912.tar.xz sssd-34029fb3030e20a546f5d3a84c194dbe137fb912.zip |
RESOLV: Do not steal the resulting hostent on error
https://fedorahosted.org/sssd/ticket/1706
-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; } |