From 233aae20814d1e0d90805279182b6acd09697871 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 31 Oct 1998 09:31:29 +0000 Subject: don't core dump in smbstatus if we can't open the shmem system (This used to be commit ef9749798ab72a5e26f9cb5d0904266d6df70f8c) --- source3/locking/locking.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/locking/locking.c b/source3/locking/locking.c index b71b775524..84c9c442b5 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -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); } -- cgit