From b1df1383dcefa38f9f5d52be3a11e8bb1f465bbf Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 14 Dec 2010 10:45:32 +0100 Subject: Fix incorrect return value on failure in resolve_get_domain_send() https://fedorahosted.org/sssd/ticket/721 --- src/providers/fail_over.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/providers/fail_over.c') 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; } -- cgit