fix source4/librpc/rpc/dcerpc.c dcerpc_bh_raw_call_recv
authorStefan Metzmacher <metze@samba.org>
Sat, 21 Sep 2013 10:30:52 +0000 (12:30 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 11:14:55 +0000 (13:14 +0200)
source4/librpc/rpc/dcerpc.c

index 2873f9b2037bfdcd66337f79f4235b6e62e44fb4..b578a2edd105253568cd41c96c352ee8741507c5 100644 (file)
@@ -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);