Unset intop callback parameters before they go out of scope

This commit is contained in:
Luke Howard 2005-07-20 04:24:02 +00:00
parent 77ad940c10
commit 25ae11ccd9
2 changed files with 5 additions and 1 deletions

View file

@ -1346,6 +1346,10 @@ int slapi_search_internal_callback_pb( Slapi_PBlock *pb,
cleanup:
slapi_pblock_set( pb, SLAPI_PLUGIN_INTOP_RESULT, (void *)rs.sr_err );
slapi_pblock_set( pb, SLAPI_X_INTOP_RESULT_CALLBACK, NULL );
slapi_pblock_set( pb, SLAPI_X_INTOP_SEARCH_ENTRY_CALLBACK, NULL );
slapi_pblock_set( pb, SLAPI_X_INTOP_REFERRAL_ENTRY_CALLBACK, NULL );
slapi_pblock_set( pb, SLAPI_X_INTOP_CALLBACK_DATA, NULL );
if ( freeFilter && filter != NULL )
slapi_filter_free( filter, 1 );

View file

@ -1578,7 +1578,7 @@ slapi_send_ldap_result(
return;
}
if (op->o_tag == LDAP_REQ_SEARCH)
if ( op->o_tag == LDAP_REQ_SEARCH )
rs.sr_nentries = nentries;
send_ldap_result( op, &rs );