libcli/smb: ignore lease_flags and lease_duration for leasev1 in smb2_lease_pull()
commitf30cdb0c52a99f79afa9af5a71262dc2a9744dc6
authorRalph Boehme <slow@samba.org>
Mon, 21 Oct 2024 10:51:20 +0000 (21 12:51 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 5 Nov 2024 14:39:30 +0000 (5 14:39 +0000)
tree0ad6197bad68fd996ad953b33f1cfa742239e67f
parent2b1ef2d894a30648295186ad755affb0032d5581
libcli/smb: ignore lease_flags and lease_duration for leasev1 in smb2_lease_pull()

MS-SMB2 2.2.13.2.8 SMB2_CREATE_REQUEST_LEASE:

  LeaseFlags (4 bytes): This field MUST NOT be used and MUST be reserved.
  The client MUST set this to 0, and the server MUST ignore it on receipt.

  LeaseDuration (8 bytes): This field MUST NOT be used and MUST be reserved.
  The client MUST set this to 0, and the server MUST ignore it on receipt.

So let's really, really ignore it.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/smb/smb2_lease.c