diff options
author | Jan Cholasta <jcholast@redhat.com> | 2014-11-10 18:12:02 +0000 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2014-11-25 08:23:24 +0000 |
commit | 47a08f34980053400e1b52f016546b13a8626bd7 (patch) | |
tree | 864d06b06de5f5926081a3c0e93ac76828ee0f1b /ipa-client | |
parent | 8b13c30dc272a78c6d8a4958d5cb107de1fac408 (diff) | |
download | freeipa-47a08f34980053400e1b52f016546b13a8626bd7.tar.gz freeipa-47a08f34980053400e1b52f016546b13a8626bd7.tar.xz freeipa-47a08f34980053400e1b52f016546b13a8626bd7.zip |
Fix unchecked return value in ipa-join
https://fedorahosted.org/freeipa/ticket/4713
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipa-client')
-rw-r--r-- | ipa-client/ipa-join.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipa-client/ipa-join.c b/ipa-client/ipa-join.c index 46f64572d..ac8251fef 100644 --- a/ipa-client/ipa-join.c +++ b/ipa-client/ipa-join.c @@ -208,8 +208,11 @@ connect_ldap(const char *hostname, const char *binddn, const char *bindpw) { struct berval bindpw_bv; if (debug) { - ldapdebug=2; + ldapdebug = 2; ret = ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &ldapdebug); + if (ret != LDAP_OPT_SUCCESS) { + goto fail; + } } if (ldap_set_option(NULL, LDAP_OPT_X_TLS_CACERTFILE, CAFILE) != LDAP_OPT_SUCCESS) |