mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
reset passwords before freeindg them
This commit is contained in:
parent
7de67df355
commit
6bcbe9ad31
@ -106,8 +106,10 @@ ldap_back_bind(
|
||||
mdn.bv_val = NULL;
|
||||
|
||||
if ( li->savecred ) {
|
||||
if ( lc->cred.bv_val )
|
||||
if ( lc->cred.bv_val ) {
|
||||
memset( lc->cred.bv_val, 0, lc->cred.bv_len );
|
||||
ch_free( lc->cred.bv_val );
|
||||
}
|
||||
ber_dupbv( &lc->cred, &op->oq_bind.rb_cred );
|
||||
ldap_set_rebind_proc( lc->ld, ldap_back_rebind, lc );
|
||||
}
|
||||
|
@ -147,6 +147,7 @@ ldap_back_conn_free(
|
||||
ch_free( lc->bound_dn.bv_val );
|
||||
}
|
||||
if ( lc->cred.bv_val ) {
|
||||
memset( lc->cred.bv_val, 0, lc->cred.bv_len );
|
||||
ch_free( lc->cred.bv_val );
|
||||
}
|
||||
if ( lc->local_dn.bv_val ) {
|
||||
|
Loading…
Reference in New Issue
Block a user