summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_dyndns.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_dyndns.c b/src/providers/ipa/ipa_dyndns.c
index 1e4d97ed..089f8fba 100644
--- a/src/providers/ipa/ipa_dyndns.c
+++ b/src/providers/ipa/ipa_dyndns.c
@@ -344,10 +344,12 @@ static int ipa_dyndns_add_ldap_iface(struct ipa_dyndns_ctx *state,
return ret;
}
+ errno = 0;
ret = getsockname(fd, (struct sockaddr *) &ss, &ss_len);
if (ret == -1) {
- DEBUG(0,("Failed to get socket name\n"));
- return errno;
+ ret = errno;
+ DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to get socket name\n"));
+ return ret;
}
switch(ss.ss_family) {