summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index ecb907e72d..d8eb7a662e 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -508,7 +508,9 @@ static WERROR init_srv_share_info_ctr(pipes_struct *p,
ZERO_STRUCTP(ctr);
- *resume_hnd = 0;
+ if (resume_hnd) {
+ *resume_hnd = 0;
+ }
/* Ensure all the usershares are loaded. */
become_root();