summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_lsa_hnd.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_server/srv_lsa_hnd.c')
-rw-r--r--source3/rpc_server/srv_lsa_hnd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_lsa_hnd.c b/source3/rpc_server/srv_lsa_hnd.c
index b32b3322b3..add040aa3d 100644
--- a/source3/rpc_server/srv_lsa_hnd.c
+++ b/source3/rpc_server/srv_lsa_hnd.c
@@ -411,8 +411,14 @@ BOOL get_policy_cli_state(const POLICY_HND *hnd, struct cli_state **cli,
{
DEBUG(3,("Getting cli state pnum=%x\n", p->pnum));
- (*cli ) = p->dev.cli->cli;
- (*fnum) = p->dev.cli->fnum;
+ if (cli != NULL)
+ {
+ (*cli ) = p->dev.cli->cli;
+ }
+ if (fnum != NULL)
+ {
+ (*fnum) = p->dev.cli->fnum;
+ }
return True;
}