summaryrefslogtreecommitdiff
path: root/librpc/rpc/binding_handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'librpc/rpc/binding_handle.c')
-rw-r--r--librpc/rpc/binding_handle.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/librpc/rpc/binding_handle.c b/librpc/rpc/binding_handle.c
index 9354bbdc68e..3c74fdfdb17 100644
--- a/librpc/rpc/binding_handle.c
+++ b/librpc/rpc/binding_handle.c
@@ -494,15 +494,7 @@ static void dcerpc_binding_handle_call_done(struct tevent_req *subreq)
NTSTATUS dcerpc_binding_handle_call_recv(struct tevent_req *req)
{
- NTSTATUS error;
-
- if (tevent_req_is_nterror(req, &error)) {
- tevent_req_received(req);
- return error;
- }
-
- tevent_req_received(req);
- return NT_STATUS_OK;
+ return tevent_req_simple_recv_ntstatus(req);
}
NTSTATUS dcerpc_binding_handle_call(struct dcerpc_binding_handle *h,