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 | 233aae20814d1e0d90805279182b6acd09697871 (patch) | |
tree | 2d9faba7621a177d3776e840b58c37b5842666d2 /source3/locking | |
parent | 04f2858fd7f2123f12bfdb4ba695dc56ef7df0c7 (diff) | |
download | samba-233aae20814d1e0d90805279182b6acd09697871.tar.gz samba-233aae20814d1e0d90805279182b6acd09697871.tar.bz2 samba-233aae20814d1e0d90805279182b6acd09697871.zip |
don't core dump in smbstatus if we can't open the shmem system
(This used to be commit ef9749798ab72a5e26f9cb5d0904266d6df70f8c)
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/locking.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |