1
0
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:
Michael Adam
2007-09-17 15:11:20 +00:00
committed by Gerald (Jerry) Carter
parent 8bb85f3f14
commit 46093004a7
5 changed files with 72 additions and 49 deletions

View File

@@ -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;
}