mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:libcli/smb2: add new_epoch to struct smb2_lease_break
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
d7669ea451
commit
3327615c23
@ -57,6 +57,7 @@ struct smb2_handle {
|
|||||||
|
|
||||||
struct smb2_lease_break {
|
struct smb2_lease_break {
|
||||||
struct smb2_lease current_lease;
|
struct smb2_lease current_lease;
|
||||||
|
uint16_t new_epoch; /* only for v2 leases */
|
||||||
uint32_t break_flags;
|
uint32_t break_flags;
|
||||||
uint32_t new_lease_state;
|
uint32_t new_lease_state;
|
||||||
uint32_t break_reason; /* should be 0 */
|
uint32_t break_reason; /* should be 0 */
|
||||||
|
@ -398,6 +398,7 @@ static void smb2_transport_break_handler(struct tevent_req *subreq)
|
|||||||
struct smb2_lease_break lb;
|
struct smb2_lease_break lb;
|
||||||
|
|
||||||
ZERO_STRUCT(lb);
|
ZERO_STRUCT(lb);
|
||||||
|
lb.new_epoch = SVAL(body, 0x2);
|
||||||
lb.break_flags = SVAL(body, 0x4);
|
lb.break_flags = SVAL(body, 0x4);
|
||||||
memcpy(&lb.current_lease.lease_key, body+0x8,
|
memcpy(&lb.current_lease.lease_key, body+0x8,
|
||||||
sizeof(struct smb2_lease_key));
|
sizeof(struct smb2_lease_key));
|
||||||
|
Loading…
Reference in New Issue
Block a user