From: Stefan Metzmacher Date: Tue, 22 Nov 2022 09:47:33 +0000 (+0100) Subject: s3:locking: relax __SHARE_MODE_LOCK_SPACE check for 32bit platforms X-Git-Tag: talloc-2.4.0~486 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c2e1d6259c4c06fce5d1333553b611ffd8f0ef4;p=thirdparty%2Fsamba.git s3:locking: relax __SHARE_MODE_LOCK_SPACE check for 32bit platforms sizeof(struct share_mode_lock) is only 28 bytes instead of 32 bytes on 32bit systems... Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index 84497f42145..a30ab3921ee 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -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,