summaryrefslogtreecommitdiff
path: root/source4/rpc_server/winreg
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-04-01 15:58:55 +1100
committerAndrew Tridgell <tridge@samba.org>2011-04-04 10:30:30 +1000
commitf0e73030239d29654eb54ebc95c636ff6385d575 (patch)
tree24025a653e5ddb3a9bf2512db718f9f927299914 /source4/rpc_server/winreg
parent81f2dda62676b842cda5297390de290e5d1f5e81 (diff)
downloadsamba-f0e73030239d29654eb54ebc95c636ff6385d575.tar.gz
s4-rpc: improved error mapping for several RPC server calls
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/rpc_server/winreg')
-rw-r--r--source4/rpc_server/winreg/rpc_winreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c
index 6007686a561..4f754b84d53 100644
--- a/source4/rpc_server/winreg/rpc_winreg.c
+++ b/source4/rpc_server/winreg/rpc_winreg.c
@@ -42,7 +42,7 @@ static NTSTATUS dcerpc_winreg_bind(struct dcesrv_call_state *dce_call,
if (!W_ERROR_IS_OK(err)) {
DEBUG(0, ("Error opening registry: %s\n", win_errstr(err)));
- return NT_STATUS_UNSUCCESSFUL;
+ return werror_to_ntstatus(err);
}
dce_call->context->private_data = ctx;