summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/getdc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/netapi/getdc.c b/source3/lib/netapi/getdc.c
index 1084ddc3c8..2626eb0af4 100644
--- a/source3/lib/netapi/getdc.c
+++ b/source3/lib/netapi/getdc.c
@@ -69,8 +69,8 @@ static WERROR NetGetDCNameRemote(struct libnetapi_ctx *ctx,
status = rpccli_netr_GetDcName(pipe_cli, ctx,
server_name,
domain_name,
- (const char **)buffer);
- werr = ntstatus_to_werror(status);
+ (const char **)buffer,
+ &werr);
done:
if (cli) {
cli_shutdown(cli);