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