mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 17:19:43 -05:00
Use ber_set_option() instead of setting lber_debug
This commit is contained in:
parent
d5840e809f
commit
894b74d730
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue