summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net_rpc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index a13a8c5e22..9b3248cf63 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -132,6 +132,10 @@ static int run_rpc_command(struct cli_state *cli_arg, const char *pipe_name, int
else
cli = cli_arg;
+ if (!cli) {
+ return -1;
+ }
+
domain_sid = net_get_remote_domain_sid(cli);
/* Create mem_ctx */