mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
fix searchFilter double free (ITS#5043)
This commit is contained in:
parent
2c41e611dc
commit
ca7ad7f2e3
@ -768,7 +768,9 @@ rwm_filter_map_rewrite(
|
||||
case REWRITE_REGEXEC_OK:
|
||||
if ( !BER_BVISNULL( fstr ) ) {
|
||||
fstr->bv_len = strlen( fstr->bv_val );
|
||||
if ( fstr->bv_val != ftmp.bv_val ) {
|
||||
ch_free( ftmp.bv_val );
|
||||
}
|
||||
|
||||
} else {
|
||||
*fstr = ftmp;
|
||||
|
Loading…
Reference in New Issue
Block a user