summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-04-21 14:34:06 +0000
committerJoshua Colp <jcolp@digium.com>2008-04-21 14:34:06 +0000
commit6d5290a85b51a6409c7f94bc09c7b110a9cf137c (patch)
tree02256c94905d1ed204fa4e82b8320b8f4eb45fec /res
parent87973ccea2587219ad08c26efabaa369b43d036f (diff)
Only print out the error message if ldap_modify_ext_s actually returns an error, and not success.
(closes issue #12438) Reported by: gservat Patches: res_config_ldap.c-patch-code uploaded by gservat (license 466) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114320 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r--res/res_config_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_config_ldap.c b/res/res_config_ldap.c
index 376f9aff8..cb1bd78cb 100644
--- a/res/res_config_ldap.c
+++ b/res/res_config_ldap.c
@@ -1285,7 +1285,7 @@ static int update_ldap(const char *basedn, const char *table_name, const char *a
for (i = 0; ldap_entry; i++) {
dn = ldap_get_dn(ldapConn, ldap_entry);
- if (!(error = ldap_modify_ext_s(ldapConn, dn, ldap_mods, NULL, NULL)))
+ if ((error = ldap_modify_ext_s(ldapConn, dn, ldap_mods, NULL, NULL)) != LDAP_SUCCESS)
ast_log(LOG_ERROR, "Couldn't modify dn:%s because %s", dn, ldap_err2string(error));
ldap_entry = ldap_next_entry(ldapConn, ldap_entry);