summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-31 09:31:29 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-31 09:31:29 +0000
commitef9749798ab72a5e26f9cb5d0904266d6df70f8c (patch)
tree6bc298ce89bc4f1f00c9b89e9c3432170fabd37c
parenta2bacc08955ba61aac4b45b63a54b279e5776261 (diff)
downloadsamba-ef9749798ab72a5e26f9cb5d0904266d6df70f8c.tar.gz
don't core dump in smbstatus if we can't open the shmem system
-rw-r--r--source/locking/locking.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c
index b71b7755248..84c9c442b5a 100644
--- a/source/locking/locking.c
+++ b/source/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);
}