mirror of
https://github.com/samba-team/samba.git
synced 2025-11-20 08:23:50 +03:00
r25197: Change net_make_ipc_connection() and net_make_ipc_connection_ex() to
return NTSTATUS to allow for better error propagation. Michael
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
8bb85f3f14
commit
46093004a7
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user