diff options
author | Stefan Metzmacher <metze@samba.org> | 2020-10-23 11:52:57 +0200 |
---|---|---|
committer | Samuel Cabrero <scabrero@sn-devel-184> | 2020-10-23 16:02:37 +0000 |
commit | 42e79cee3d306a92243cc6c4898c5e280535d67b (patch) | |
tree | 9bb89e4dba81fe89214f5178384cc283ad6d97e2 /librpc | |
parent | 7c8a7e8a15b433cd151afff0b52e9e5096a2c230 (diff) | |
download | samba-42e79cee3d306a92243cc6c4898c5e280535d67b.tar.gz |
librpc/dcesrv_core: make use of dcerpc_fault_to_nt_status() in dcesrv_call_dispatch_local()
The caller wants to get a useful NTSTATUS instead of a generic
NT_STATUS_NET_WRITE_FAULT.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14551
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/rpc/dcesrv_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/librpc/rpc/dcesrv_core.c b/librpc/rpc/dcesrv_core.c index d39dbb43687..783d75d5bfe 100644 --- a/librpc/rpc/dcesrv_core.c +++ b/librpc/rpc/dcesrv_core.c @@ -2996,7 +2996,7 @@ _PUBLIC_ NTSTATUS dcesrv_call_dispatch_local(struct dcesrv_call_state *call) call->context->iface->name, call->pkt.u.request.opnum, dcerpc_errstr(call, call->fault_code)); - return status; + return dcerpc_fault_to_nt_status(call->fault_code); } status = call->context->iface->local(call, call, call->r); @@ -3005,7 +3005,7 @@ _PUBLIC_ NTSTATUS dcesrv_call_dispatch_local(struct dcesrv_call_state *call) call->context->iface->name, call->pkt.u.request.opnum, dcerpc_errstr(call, call->fault_code)); - return status; + return dcerpc_fault_to_nt_status(call->fault_code); } push = ndr_push_init_ctx(call); @@ -3021,7 +3021,7 @@ _PUBLIC_ NTSTATUS dcesrv_call_dispatch_local(struct dcesrv_call_state *call) call->context->iface->name, call->pkt.u.request.opnum, dcerpc_errstr(call, call->fault_code)); - return status; + return dcerpc_fault_to_nt_status(call->fault_code); } rep = talloc_zero(call, struct data_blob_list_item); |