diff options
-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); } |