diff options
author | Pavel Reichl <preichl@redhat.com> | 2015-07-08 09:01:24 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-07-24 09:30:41 +0200 |
commit | aa3fd6fde3888c0e333cad852ae5b4f671d55f58 (patch) | |
tree | b1b6f163577b2b596403ac54b76d2991d889cc23 /src/providers/ldap | |
parent | f91029dd8d7dbc026a5c73e222926db957240cb4 (diff) | |
download | sssd-aa3fd6fde3888c0e333cad852ae5b4f671d55f58.tar.gz sssd-aa3fd6fde3888c0e333cad852ae5b4f671d55f58.tar.xz sssd-aa3fd6fde3888c0e333cad852ae5b4f671d55f58.zip |
DYNDNS: sss_iface_addr_list_get return ENOENT
If none of eligible interfaces matches ifname then ENOENT is returned.
Resolves:
https://fedorahosted.org/sssd/ticket/2549
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/sdap_dyndns.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_dyndns.c b/src/providers/ldap/sdap_dyndns.c index 0d9c92057..e99a4f668 100644 --- a/src/providers/ldap/sdap_dyndns.c +++ b/src/providers/ldap/sdap_dyndns.c @@ -502,8 +502,12 @@ sdap_dyndns_get_addrs_send(TALLOC_CTX *mem_ctx, if (iface) { ret = sss_iface_addr_list_get(state, iface, &state->addresses); if (ret != EOK) { - DEBUG(SSSDBG_OP_FAILURE, + DEBUG(ret == ENOENT ? SSSDBG_MINOR_FAILURE : SSSDBG_OP_FAILURE, "Cannot get list of addresses from interface %s\n", iface); + /* non critical failure */ + if (ret == ENOENT) { + ret = EOK; + } } /* We're done. Just fake an async request completion */ goto done; |