Commit a6967c92 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix filter structure leak (ITS#4794)

parent 10c9d83c
......@@ -3,6 +3,7 @@ OpenLDAP 2.3 Change Log
OpenLDAP 2.3.32 Engineering
Fixed slapd ACL set memleak (ITS#4780)
Fixed slapd syncrepl shutdown hang (ITS#4790)
Fixed slapd values return filter control leak (ITS#4794)
Fixed slapd-sql Debug typo (ITS#4784)
OpenLDAP 2.3.31 Release
......
......@@ -1254,6 +1254,8 @@ static int parseValuesReturnFilter (
rs->sr_err = get_vrFilter( op, ber,
(ValuesReturnFilter **)&(op->o_vrFilter), &rs->sr_text);
(void) ber_free( ber, 1 );
if( rs->sr_err != LDAP_SUCCESS ) {
if( rs->sr_err == SLAPD_DISCONNECT ) {
rs->sr_err = LDAP_PROTOCOL_ERROR;
......
......@@ -978,7 +978,7 @@ get_simple_vrFilter(
}
if ( err == LDAP_SUCCESS ) {
*filt = ch_malloc( sizeof vrf );
*filt = op->o_tmpalloc( sizeof vrf, op->o_tmpmemctx );
**filt = vrf;
}
......
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