]> git.sur5r.net Git - openldap/commitdiff
Use ber_set_option() instead of setting lber_debug
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 1 Aug 1999 20:22:26 +0000 (20:22 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 1 Aug 1999 20:22:26 +0000 (20:22 +0000)
libraries/libldap/test.c

index dc52cd1f6b68a7ab08c98567379136e089538171..650ad2128d0b9cf6b341fbe3f0f12017874c9f11 100644 (file)
@@ -301,7 +301,7 @@ main( int argc, char **argv )
                        ldap_debug = atoi( optarg );
 #ifdef LBER_DEBUG
                        if ( ldap_debug & LDAP_DEBUG_PACKETS ) {
-                               lber_debug = ldap_debug;
+                               ber_set_option( NULL, LBER_OPT_DEBUG_LEVEL, &ldap_debug );
                        }
 #endif
 #else
@@ -486,7 +486,7 @@ main( int argc, char **argv )
                        ldap_debug = atoi( line );
 #ifdef LBER_DEBUG
                        if ( ldap_debug & LDAP_DEBUG_PACKETS ) {
-                               lber_debug = ldap_debug;
+                               ber_set_option( NULL, LBER_OPT_DEBUG_LEVEL, &ldap_debug );
                        }
 #endif
 #else