diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-08-30 08:54:10 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 08:37:37 +0100 |
commit | 662fc2de8c2896503026a2a4052ed1ea8ce78af5 (patch) | |
tree | 29aaff1258cd6a21808d3a6567da2d9c96be14c6 /pidl/lib/Parse | |
parent | 02c34fe4e51b5e62157eaf2de1d0aaf9fc6b8d72 (diff) | |
download | samba-662fc2de8c2896503026a2a4052ed1ea8ce78af5.tar.gz samba-662fc2de8c2896503026a2a4052ed1ea8ce78af5.tar.xz samba-662fc2de8c2896503026a2a4052ed1ea8ce78af5.zip |
pidl:NDR/Client: simplify tevent_req_nterror() usage
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'pidl/lib/Parse')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm index 17b25b86759..06cc65a2a61 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm @@ -159,9 +159,8 @@ sub ParseFunction_r_Done($$$$) $self->pidl("status = dcerpc_binding_handle_call_recv(subreq);"); $self->pidl("TALLOC_FREE(subreq);"); - $self->pidl("if (!NT_STATUS_IS_OK(status)) {"); + $self->pidl("if (tevent_req_nterror(req, status)) {"); $self->indent; - $self->pidl("tevent_req_nterror(req, status);"); $self->pidl("return;"); $self->deindent; $self->pidl("}"); @@ -564,9 +563,8 @@ sub ParseFunction_Done($$$$) $self->pidl("status = dcerpc_$name\_r_recv(subreq, mem_ctx);"); $self->pidl("TALLOC_FREE(subreq);"); - $self->pidl("if (!NT_STATUS_IS_OK(status)) {"); + $self->pidl("if (tevent_req_nterror(req, status)) {"); $self->indent; - $self->pidl("tevent_req_nterror(req, status);"); $self->pidl("return;"); $self->deindent; $self->pidl("}"); |