diff options
author | Michael Adam <obnox@samba.org> | 2007-09-17 15:11:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:50 -0500 |
commit | 1130482add933d6a3e0b7f13717e0ae72588c6a2 (patch) | |
tree | f0288bcf212a1bcbfefddee50185875b3ce7a47e /source3/utils/net_rpc_shell.c | |
parent | 4f051e735b85a24f37e2b844bcbb348f36600420 (diff) | |
download | samba-1130482add933d6a3e0b7f13717e0ae72588c6a2.tar.gz samba-1130482add933d6a3e0b7f13717e0ae72588c6a2.tar.bz2 samba-1130482add933d6a3e0b7f13717e0ae72588c6a2.zip |
r25197: Change net_make_ipc_connection() and net_make_ipc_connection_ex() to
return NTSTATUS to allow for better error propagation.
Michael
(This used to be commit 46093004a788dae83a4ddb888ca5d72f555c236c)
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; } |