diff options
author | Sumit Bose <sbose@redhat.com> | 2010-12-14 10:45:32 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-14 17:13:29 -0500 |
commit | b1df1383dcefa38f9f5d52be3a11e8bb1f465bbf (patch) | |
tree | 12fc97c2a62b674aeabaa48558003e43df11d525 /src/providers/fail_over.c | |
parent | 6ad2d3a368074266cbf1420cc96922cc86876139 (diff) | |
download | sssd-b1df1383dcefa38f9f5d52be3a11e8bb1f465bbf.tar.gz sssd-b1df1383dcefa38f9f5d52be3a11e8bb1f465bbf.tar.xz sssd-b1df1383dcefa38f9f5d52be3a11e8bb1f465bbf.zip |
Fix incorrect return value on failure in resolve_get_domain_send()
https://fedorahosted.org/sssd/ticket/721
Diffstat (limited to 'src/providers/fail_over.c')
-rw-r--r-- | src/providers/fail_over.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c index 0c51b052..2dabaa36 100644 --- a/src/providers/fail_over.c +++ b/src/providers/fail_over.c @@ -1170,6 +1170,7 @@ resolve_get_domain_send(TALLOC_CTX *mem_ctx, ret = gethostname(state->hostname, HOST_NAME_MAX); if (ret) { + ret = errno; DEBUG(2, ("gethostname() failed: [%d]: %s\n",ret, strerror(ret))); return NULL; } |