ITS#8218 zero filter after freeing

This appears to be cruft leftover from rev e8c58b4e7f
This commit is contained in:
Howard Chu 2015-08-19 15:25:46 +01:00
parent 7fb9bb93bf
commit a96fc51ebb
2 changed files with 5 additions and 1 deletions

View File

@ -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;
}

View File

@ -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 {