httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r885281 - /httpd/httpd/trunk/modules/ldap/util_ldap.c
Date Sun, 29 Nov 2009 22:23:26 GMT
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);
 }



Mime
View raw message