diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-31 09:31:29 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-31 09:31:29 +0000 |
commit | ef9749798ab72a5e26f9cb5d0904266d6df70f8c (patch) | |
tree | 6bc298ce89bc4f1f00c9b89e9c3432170fabd37c /source/locking | |
parent | a2bacc08955ba61aac4b45b63a54b279e5776261 (diff) | |
download | samba-ef9749798ab72a5e26f9cb5d0904266d6df70f8c.tar.gz samba-ef9749798ab72a5e26f9cb5d0904266d6df70f8c.tar.xz samba-ef9749798ab72a5e26f9cb5d0904266d6df70f8c.zip |
don't core dump in smbstatus if we can't open the shmem system
Diffstat (limited to 'source/locking')
-rw-r--r-- | source/locking/locking.c | 1 |
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); } |