1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +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:
Stefan Metzmacher 2014-11-11 19:33:13 +01:00
parent d7669ea451
commit 3327615c23
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ struct smb2_handle {
struct smb2_lease_break {
struct smb2_lease current_lease;
uint16_t new_epoch; /* only for v2 leases */
uint32_t break_flags;
uint32_t new_lease_state;
uint32_t break_reason; /* should be 0 */

View File

@ -398,6 +398,7 @@ static void smb2_transport_break_handler(struct tevent_req *subreq)
struct smb2_lease_break lb;
ZERO_STRUCT(lb);
lb.new_epoch = SVAL(body, 0x2);
lb.break_flags = SVAL(body, 0x4);
memcpy(&lb.current_lease.lease_key, body+0x8,
sizeof(struct smb2_lease_key));