diff options
-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; } |