diff options
author | Anoop C S <anoopcs@redhat.com> | 2018-07-27 11:50:39 +0530 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-07-31 04:23:47 +0200 |
commit | 80c9219d6079532f31c4e415906a606d395af6e8 (patch) | |
tree | feb5d84134940e8fdb88d5ee3975e6af06302d68 /source4/dsdb | |
parent | c891df421813781b32081b566600076562525261 (diff) | |
download | samba-80c9219d6079532f31c4e415906a606d395af6e8.tar.gz |
s3/locking: Fix assertion check on lock reference count
lock_ref_count will always hold the old value prior to change. Thus it
would mean that if lock_ref_count is 0 the new value is already -1 which
is not expected here. Therefore it is better to make sure that it is
always greater than 0 rather than >= 0.
Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jul 31 04:23:47 CEST 2018 on sn-devel-144
Diffstat (limited to 'source4/dsdb')
0 files changed, 0 insertions, 0 deletions