diff options
Diffstat (limited to 'source3/utils/net_rpc_shell.c')
-rw-r--r-- | source3/utils/net_rpc_shell.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_shell.c b/source3/utils/net_rpc_shell.c index 474ca098e7..206e18776b 100644 --- a/source3/utils/net_rpc_shell.c +++ b/source3/utils/net_rpc_shell.c @@ -218,9 +218,10 @@ int net_rpc_shell(int argc, const char **argv) return -1; } - ctx->cli = net_make_ipc_connection(0); - if (ctx->cli == NULL) { - d_fprintf(stderr, "Could not open connection\n"); + status = net_make_ipc_connection(0, &(ctx->cli)); + if (!NT_STATUS_IS_OK(status)) { + d_fprintf(stderr, "Could not open connection: %s\n", + nt_errstr(status)); return -1; } |