Skip to content
Snippets Groups Projects
Commit f03bb57d authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#8218 zero filter after freeing

This appears to be cruft leftover from rev e8c58b4e
parent ac52a727
No related branches found
No related tags found
No related merge requests found
......@@ -1392,6 +1392,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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment