summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/oplock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 7d0a94efda..61e812d43a 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -764,6 +764,7 @@ void release_level_2_oplocks_on_change(files_struct *fsp)
if (lck == NULL) {
DEBUG(0,("release_level_2_oplocks_on_change: failed to lock "
"share mode entry for file %s.\n", fsp->fsp_name ));
+ return;
}
DEBUG(10,("release_level_2_oplocks_on_change: num_share_modes = %d\n",