summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-06-06 11:42:55 +0200
committerJeremy Allison <jra@samba.org>2013-08-12 14:00:07 -0700
commit7701053806e3cc98f8d7d4d9bd1d7b63c0b504e8 (patch)
treeb0b3cc617c69bdcaa025f705c9a1d97100453590 /librpc
parenta39c9563158cb15835f8a40fb9e79609440b5443 (diff)
downloadsamba-7701053806e3cc98f8d7d4d9bd1d7b63c0b504e8.tar.gz
samba-7701053806e3cc98f8d7d4d9bd1d7b63c0b504e8.tar.bz2
samba-7701053806e3cc98f8d7d4d9bd1d7b63c0b504e8.zip
librpc: Use tevent_req_simple_recv_ntstatus
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'librpc')
-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 9354bbdc68..3c74fdfdb1 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,