r18804: resume_hnd isn't a ref pointer and can be NULL
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Sep 2006 03:41:11 +0000 (03:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:00:59 +0000 (12:00 -0500)
metze
(This used to be commit 8736262342611d432d529812bc1f647b8d6cf625)

source3/rpc_server/srv_srvsvc_nt.c

index ecb907e72d532546ce3a530f9efa6fd1c888a532..d8eb7a662e2ef2f62ce6e1add59b617be63e9c4e 100644 (file)
@@ -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();