diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-16 23:31:09 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-18 11:54:26 +0100 |
commit | 37660581d110cafde400c5c91d660fe9082aa7bf (patch) | |
tree | f6b1c7b3330647ac14152ae9015b6e888610cb05 | |
parent | ba4f38e4e377e0b1d9c6217e415fb6e1fb5591cd (diff) | |
download | sssd-37660581d110cafde400c5c91d660fe9082aa7bf.tar.gz sssd-37660581d110cafde400c5c91d660fe9082aa7bf.tar.xz sssd-37660581d110cafde400c5c91d660fe9082aa7bf.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; } |