mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-06 15:00:40 +08:00
Replace NULLBER with NULL
Replace `lber_int_debug = ...' with `ber_set_option( ... )'
This commit is contained in:
parent
0310b8b048
commit
79fb44b129
@ -154,7 +154,7 @@ main( int argc, char **argv )
|
||||
#ifdef LDAP_DEBUG
|
||||
ldap_debug = atoi( optarg );
|
||||
if ( ldap_debug & LDAP_DEBUG_PACKETS )
|
||||
lber_int_debug = ldap_debug;
|
||||
ber_set_option( NULL, LBER_OPT_DEBUG_LEVEL, &ldap_debug );
|
||||
#else
|
||||
fprintf( stderr, "Not compiled with -DLDAP_DEBUG!\n" );
|
||||
#endif
|
||||
|
@ -317,7 +317,7 @@ send_ldap_result(
|
||||
tag = LBER_SEQUENCE;
|
||||
#endif
|
||||
|
||||
if ( (ber = der_alloc()) == NULLBER ) {
|
||||
if ( (ber = der_alloc()) == NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY, "der_alloc failed\n", 0, 0, 0 );
|
||||
return( -1 );
|
||||
}
|
||||
|
@ -552,7 +552,7 @@ search_result(
|
||||
|
||||
#ifdef LDAP_CONNECTIONLESS
|
||||
if ( m->m_cldap ) {
|
||||
if ((ber = der_alloc()) == NULLBER ) {
|
||||
if ((ber = der_alloc()) == NULL ) {
|
||||
send_ldap_msgresult( sb, SEARCHRESTAG, m,
|
||||
LDAP_OPERATIONS_ERROR, NULL, "der_alloc" );
|
||||
return;
|
||||
@ -573,7 +573,7 @@ search_result(
|
||||
if ( !m->m_cldap )
|
||||
#endif /* LDAP_CONNECTIONLESS */
|
||||
|
||||
if ( (ber = der_alloc()) == NULLBER ) {
|
||||
if ( (ber = der_alloc()) == NULL ) {
|
||||
send_ldap_msgresult( sb, SEARCHRESTAG, m,
|
||||
LDAP_OPERATIONS_ERROR, NULL, "der_alloc" );
|
||||
return;
|
||||
|
@ -439,7 +439,7 @@ put_photo_value( BerElement *ber, AttributeValue av )
|
||||
len = ps_get_abs( pe );
|
||||
Debug( LDAP_DEBUG_ARGS, "put_photo_val: ber_printf %d bytes\n",
|
||||
len, 0, 0 );
|
||||
if (( phber = der_alloc()) == NULLBER ) {
|
||||
if (( phber = der_alloc()) == NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY, "der_alloc failed\n", 0, 0, 0 );
|
||||
return( -1 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user