mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#8218 zero filter after freeing
This appears to be cruft leftover from rev e8c58b4e7f
This commit is contained in:
parent
7fb9bb93bf
commit
a96fc51ebb
@ -1413,6 +1413,7 @@ static int parseAssert (
|
||||
}
|
||||
if( op->o_assertion != NULL ) {
|
||||
filter_free_x( op, op->o_assertion, 1 );
|
||||
op->o_assertion = NULL;
|
||||
}
|
||||
return rs->sr_err;
|
||||
}
|
||||
|
@ -1226,7 +1226,10 @@ is_dn: bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
|
||||
|
||||
done:
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
if( *filter ) filter_free_x( op, *filter, 1 );
|
||||
if( *filter ) {
|
||||
filter_free_x( op, *filter, 1 );
|
||||
*filter = NULL;
|
||||
}
|
||||
BER_BVZERO( base );
|
||||
BER_BVZERO( fstr );
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user