r21726: Fix stupid cut-n-paste typo. Thanks to volker for
authorJeremy Allison <jra@samba.org>
Tue, 6 Mar 2007 22:14:09 +0000 (22:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:26 +0000 (12:18 -0500)
being on the ball..... :-).
Jeremy.
(This used to be commit 84ed7bcbe6dc14b18a7e913b153c82da1856a835)

source3/locking/locking.c

index 304932cf3260dab5ecd81cc46d6b0d08ef0bf193..37e6dbc4e54cfd49c1b92b46198632c1e96ae97e 100644 (file)
@@ -325,7 +325,7 @@ NTSTATUS do_lock_cancel(files_struct *fsp,
        }
 
        SMB_ASSERT(fsp->current_lock_count > 0);
-       fsp->current_lock_count++;
+       fsp->current_lock_count--;
 
        return NT_STATUS_OK;
 }