diff options
-rw-r--r-- | source4/libcli/raw/interfaces.h | 1 | ||||
-rw-r--r-- | source4/libcli/smb2/transport.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/raw/interfaces.h b/source4/libcli/raw/interfaces.h index 03e9bbb60b..dd0c3bd90a 100644 --- a/source4/libcli/raw/interfaces.h +++ b/source4/libcli/raw/interfaces.h @@ -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 */ diff --git a/source4/libcli/smb2/transport.c b/source4/libcli/smb2/transport.c index e3b2954dd4..166f34b825 100644 --- a/source4/libcli/smb2/transport.c +++ b/source4/libcli/smb2/transport.c @@ -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)); |