librpc: Use tevent_req_poll_ntstatus
authorVolker Lendecke <vl@samba.org>
Thu, 6 Jun 2013 09:31:37 +0000 (11:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 14 Jun 2013 18:30:33 +0000 (20:30 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
librpc/rpc/binding_handle.c

index 89ada1d35745e5b4983c573f2fe4d9261f7ec4a9..c3dc4731fbf55610a5988ea68110c2c6d17e5a48 100644 (file)
@@ -539,8 +539,7 @@ NTSTATUS dcerpc_binding_handle_call(struct dcerpc_binding_handle *h,
                return NT_STATUS_NO_MEMORY;
        }
 
-       if (!tevent_req_poll(subreq, ev)) {
-               status = map_nt_error_from_unix_common(errno);
+       if (!tevent_req_poll_ntstatus(subreq, ev, &status)) {
                talloc_free(frame);
                return status;
        }