summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-12-14 10:45:32 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-12-14 17:13:29 -0500
commitb1df1383dcefa38f9f5d52be3a11e8bb1f465bbf (patch)
tree12fc97c2a62b674aeabaa48558003e43df11d525 /src
parent6ad2d3a368074266cbf1420cc96922cc86876139 (diff)
downloadsssd-b1df1383dcefa38f9f5d52be3a11e8bb1f465bbf.tar.gz
sssd-b1df1383dcefa38f9f5d52be3a11e8bb1f465bbf.tar.bz2
sssd-b1df1383dcefa38f9f5d52be3a11e8bb1f465bbf.zip
Fix incorrect return value on failure in resolve_get_domain_send()
https://fedorahosted.org/sssd/ticket/721
Diffstat (limited to 'src')
-rw-r--r--src/providers/fail_over.c1
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;
}