From b6bdda36e3ddf9b751faa0c753b17cf605afc125 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 21 Sep 2013 12:30:52 +0200 Subject: [PATCH] fix source4/librpc/rpc/dcerpc.c dcerpc_bh_raw_call_recv --- source4/librpc/rpc/dcerpc.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 2873f9b2037b..b578a2edd105 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -362,11 +362,13 @@ static NTSTATUS dcerpc_bh_raw_call_recv(struct tevent_req *req, struct dcerpc_bh_raw_call_state *state = tevent_req_data(req, struct dcerpc_bh_raw_call_state); - NTSTATUS status; + NTSTATUS status = NT_STATUS_OK; - if (tevent_req_is_nterror(req, &status)) { - tevent_req_received(req); - return status; + if (!tevent_req_is_in_progress(req)) { + if (tevent_req_is_nterror(req, &status)) { + tevent_req_received(req); + return status; + } } *out_data = talloc_move(mem_ctx, &state->out_data.data); -- 2.34.1