mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 23:19:59 -05:00
Unset intop callback parameters before they go out of scope
This commit is contained in:
parent
77ad940c10
commit
25ae11ccd9
2 changed files with 5 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue