]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:locking: relax __SHARE_MODE_LOCK_SPACE check for 32bit platforms
authorStefan Metzmacher <metze@samba.org>
Tue, 22 Nov 2022 09:47:33 +0000 (10:47 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 24 Nov 2022 11:01:37 +0000 (11:01 +0000)
sizeof(struct share_mode_lock) is only 28 bytes instead of 32 bytes
on 32bit systems...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/locking/share_mode_lock.c

index 84497f42145dbd67bb2b2049b2356b6951b5f639..a30ab3921ee9fdb418e3e498cd655632968c4e31 100644 (file)
@@ -3009,7 +3009,7 @@ NTSTATUS _share_mode_entry_prepare_lock(
 
        SMB_ASSERT(share_mode_lock_key_refcount == 0);
 
-       SMB_ASSERT(__SHARE_MODE_LOCK_SPACE == sizeof(struct share_mode_lock));
+       SMB_ASSERT(__SHARE_MODE_LOCK_SPACE >= sizeof(struct share_mode_lock));
 
        *prepare_state = (struct share_mode_entry_prepare_state) {
                .__fid = id,