From: Guenter Knauf Date: Sun, 29 Nov 2009 22:23:26 +0000 (+0000) Subject: block setting debug level if AP_LDAP_OPT_DEBUG is not defined. X-Git-Tag: 2.3.5~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cc4a1256497179756f2620e85ddccbb197a1145;p=apache block setting debug level if AP_LDAP_OPT_DEBUG is not defined. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@885281 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index e7d8a802f1..ad16ed46db 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -2656,6 +2656,7 @@ static int util_ldap_post_config(apr_pool_t *p, apr_pool_t *plog, /* Initialize the rebind callback's cross reference list. */ apr_ldap_rebind_init (p); +#ifdef AP_LDAP_OPT_DEBUG if (st->debug_level > 0) { result = ldap_set_option(NULL, AP_LDAP_OPT_DEBUG, &st->debug_level); if (result != LDAP_SUCCESS) { @@ -2664,6 +2665,7 @@ static int util_ldap_post_config(apr_pool_t *p, apr_pool_t *plog, st->debug_level, result, ldap_err2string(result)); } } +#endif return(OK); }