Skip to content
Snippets Groups Projects
Commit 894b74d7 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Use ber_set_option() instead of setting lber_debug

parent d5840e80
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment