From aae649ab165a312aede2f7e20b63e34bd3b59492 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sat, 12 Dec 2015 14:35:35 +1000 Subject: [PATCH] * oal_connect : fix setting debug --- src/ldapauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ldapauth.c b/src/ldapauth.c index a7234aa..0365cf1 100644 --- a/src/ldapauth.c +++ b/src/ldapauth.c @@ -90,7 +90,7 @@ oal_connect(LDAP ** ld, snprintf(config->error, sizeof(config->error), "can't set follow referrals to 'off'"); return 1; } - if (ldap_set_option(*ld, LDAP_OPT_DEBUG_LEVEL, config->debug ? LDAP_OPT_ON : LDAP_OPT_OFF)) { + if (ldap_set_option(*ld, LDAP_OPT_DEBUG_LEVEL, config->debug ? LDAP_OPT_ON : LDAP_OPT_OFF) != LDAP_OPT_SUCCESS) { snprintf(config->error, sizeof(config->error), "can't set debug level for ldap conn"); return 1; }