summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-22 03:41:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:00:59 -0500
commit7239a85f0a8da51c10ca500408e328b3a84a08b1 (patch)
tree7673eaa0c71b8aa6c42b8738eba53e429fdb4deb
parentd56c3dfdaac3d58f3272f76adda5f057c137681f (diff)
downloadsamba-7239a85f0a8da51c10ca500408e328b3a84a08b1.tar.gz
samba-7239a85f0a8da51c10ca500408e328b3a84a08b1.tar.bz2
samba-7239a85f0a8da51c10ca500408e328b3a84a08b1.zip
r18804: resume_hnd isn't a ref pointer and can be NULL
metze (This used to be commit 8736262342611d432d529812bc1f647b8d6cf625)
-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();