diff --git a/selftest/knownfail b/selftest/knownfail index 39f9c443149..c5f1f447838 100644 --- a/selftest/knownfail +++ b/selftest/knownfail @@ -88,7 +88,6 @@ ^samba4.rpc.wkssvc ^samba4.rpc.handles.*.lsarpc-shared ^samba4.rpc.epmapper.*.Lookup_simple -^samba4.rpc.epmapper.*.Lookup_terminate_search ^samba4.rpc.epmapper.*.Map_simple ^samba4.rpc.epmapper.*.Map_full ^samba4.rpc.lsalookup on ncalrpc diff --git a/source4/rpc_server/epmapper/rpc_epmapper.c b/source4/rpc_server/epmapper/rpc_epmapper.c index 462553dfe6f..1634b9f4eaf 100644 --- a/source4/rpc_server/epmapper/rpc_epmapper.c +++ b/source4/rpc_server/epmapper/rpc_epmapper.c @@ -261,7 +261,16 @@ failed: static error_status_t dcesrv_epm_LookupHandleFree(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct epm_LookupHandleFree *r) { - DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); + struct dcesrv_handle *h = NULL; + + r->out.entry_handle = r->in.entry_handle; + + DCESRV_PULL_HANDLE_FAULT(h, r->in.entry_handle, HTYPE_LOOKUP); + TALLOC_FREE(h); + + ZERO_STRUCTP(r->out.entry_handle); + + return EPMAPPER_STATUS_OK; } static error_status_t dcesrv_epm_InqObject(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,