don't core dump in smbstatus if we can't open the shmem system
authorAndrew Tridgell <tridge@samba.org>
Sat, 31 Oct 1998 09:31:29 +0000 (09:31 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 31 Oct 1998 09:31:29 +0000 (09:31 +0000)
(This used to be commit ef9749798ab72a5e26f9cb5d0904266d6df70f8c)

source3/locking/locking.c

index b71b7755248192724967f7a3d17531191f4bfef4..84c9c442b5a7eb71e92e798c6e958a4d5a657bc0 100644 (file)
@@ -285,6 +285,7 @@ BOOL modify_share_mode(int token, files_struct *fsp, int new_mode)
 
 int share_mode_forall(void (*fn)(share_mode_entry *, char *))
 {
+       if (!share_ops) return 0;
        return share_ops->forall(fn);
 }