mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
Do not compare c_auth when NULL
This commit is contained in:
parent
ee893ae147
commit
72ca711271
@ -471,12 +471,14 @@ handle_bind_response(
|
|||||||
client->c_state = LLOAD_C_READY;
|
client->c_state = LLOAD_C_READY;
|
||||||
client->c_type = LLOAD_C_OPEN;
|
client->c_type = LLOAD_C_OPEN;
|
||||||
client->c_pin_id = 0;
|
client->c_pin_id = 0;
|
||||||
if ( result != LDAP_SUCCESS ) {
|
if ( !BER_BVISNULL( &client->c_auth ) ) {
|
||||||
ber_memfree( client->c_auth.bv_val );
|
if ( result != LDAP_SUCCESS ) {
|
||||||
BER_BVZERO( &client->c_auth );
|
ber_memfree( client->c_auth.bv_val );
|
||||||
} else if ( !ber_bvstrcasecmp(
|
BER_BVZERO( &client->c_auth );
|
||||||
&client->c_auth, &lloadd_identity ) ) {
|
} else if ( !ber_bvstrcasecmp(
|
||||||
client->c_type = LLOAD_C_PRIVILEGED;
|
&client->c_auth, &lloadd_identity ) ) {
|
||||||
|
client->c_type = LLOAD_C_PRIVILEGED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ( !BER_BVISNULL( &client->c_sasl_bind_mech ) ) {
|
if ( !BER_BVISNULL( &client->c_sasl_bind_mech ) ) {
|
||||||
ber_memfree( client->c_sasl_bind_mech.bv_val );
|
ber_memfree( client->c_sasl_bind_mech.bv_val );
|
||||||
|
Loading…
Reference in New Issue
Block a user