]> git.ipfire.org Git - thirdparty/samba.git/commit
libcli/smb: make smb2_lease_{pull,push} endian safe
authorStefan Metzmacher <metze@samba.org>
Wed, 16 Apr 2025 13:18:12 +0000 (15:18 +0200)
committerJule Anger <janger@samba.org>
Thu, 17 Apr 2025 17:03:34 +0000 (17:03 +0000)
commit40c8ba32d87da607662bf1dde9aa17f3c91399da
treef209f3312c7deedbda4b36179692710fd68337ac
parent93e74025c8899d7f19b2ce00d8240ff1c8c0b4f1
libcli/smb: make smb2_lease_{pull,push} endian safe

smbd_smb2_send_lease_break() is already endian safe,
which means we'll get a mismatch on big endian systems,
so that smbd_smb2_send_lease_break() sends the lease key
in reversed order.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15849

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Björn Jacke <bjacke@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Apr 17 11:30:58 UTC 2025 on atb-devel-224

(cherry picked from commit 80d5fa134d51b4b2238f775fea0af3d511bf3144)

Autobuild-User(v4-22-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-22-test): Thu Apr 17 17:03:35 UTC 2025 on atb-devel-224
libcli/smb/smb2_lease.c