mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
fix entry DN free
This commit is contained in:
parent
f103589cc3
commit
be53e82650
@ -275,8 +275,8 @@ fail:;
|
||||
rs->sr_operational_attrs = NULL;
|
||||
rs->sr_flags = 0;
|
||||
abort = send_search_entry( op, rs );
|
||||
if ( !BER_BVISNULL( &ent.e_name ) && ( ent.e_name.bv_val != bdn.bv_val ) )
|
||||
{
|
||||
if ( !BER_BVISNULL( &ent.e_name ) ) {
|
||||
assert( ent.e_name.bv_val != bdn.bv_val );
|
||||
free( ent.e_name.bv_val );
|
||||
BER_BVZERO( &ent.e_name );
|
||||
}
|
||||
|
@ -942,8 +942,10 @@ meta_send_entry(
|
||||
rs->sr_entry = NULL;
|
||||
rs->sr_attrs = NULL;
|
||||
|
||||
if ( !BER_BVISNULL( &ent.e_name ) && ent.e_name.bv_val != bdn.bv_val ) {
|
||||
free( ent.e_name.bv_val );
|
||||
if ( !BER_BVISNULL( &ent.e_name ) ) {
|
||||
if ( ent.e_name.bv_val != bdn.bv_val ) {
|
||||
free( ent.e_name.bv_val );
|
||||
}
|
||||
BER_BVZERO( &ent.e_name );
|
||||
}
|
||||
if ( !BER_BVISNULL( &ent.e_nname ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user