Commit 669d0211 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

import fix for searchFilter double free (ITS#5043)

parent 5ad3ce14
......@@ -3,6 +3,7 @@ OpenLDAP 2.3 Change Log
OpenLDAP 2.3.37 Engineering
Fixed slapd-glue/syncprov interaction (ITS#4623)
Fixed slapd-ldap search reference crash (ITS#5025)
Fixed slapo-rwm searchFilter double free (ITS#5043)
Clarified slapd-perl SampleLDAP.pm usage (ITS#4995)
Documentation
Fixed slapd.conf(5) for default loglevel (ITS#5027)
......
......@@ -768,7 +768,9 @@ rwm_filter_map_rewrite(
case REWRITE_REGEXEC_OK:
if ( !BER_BVISNULL( fstr ) ) {
fstr->bv_len = strlen( fstr->bv_val );
ch_free( ftmp.bv_val );
if ( fstr->bv_val != ftmp.bv_val ) {
ch_free( ftmp.bv_val );
}
} else {
*fstr = ftmp;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment