You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fu...@apache.org on 2009/11/29 23:23:26 UTC
svn commit: r885281 - /httpd/httpd/trunk/modules/ldap/util_ldap.c
Author: fuankg
Date: Sun Nov 29 22:23:26 2009
New Revision: 885281
URL: http://svn.apache.org/viewvc?rev=885281&view=rev
Log:
block setting debug level if AP_LDAP_OPT_DEBUG is not defined.
Modified:
httpd/httpd/trunk/modules/ldap/util_ldap.c
Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap.c?rev=885281&r1=885280&r2=885281&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Sun Nov 29 22:23:26 2009
@@ -2656,6 +2656,7 @@
/* 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 @@
st->debug_level, result, ldap_err2string(result));
}
}
+#endif
return(OK);
}