summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcli/smb/smb2_lease.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcli/smb/smb2_lease.c b/libcli/smb/smb2_lease.c
index 9e6c950d33..f97f096db8 100644
--- a/libcli/smb/smb2_lease.c
+++ b/libcli/smb/smb2_lease.c
@@ -46,13 +46,13 @@ ssize_t smb2_lease_pull(const uint8_t *buf, size_t len,
switch (version) {
case 1:
- memcpy(&lease->parent_lease_key, buf+32, 16);
- lease->lease_epoch = SVAL(buf, 48);
- break;
- case 2:
ZERO_STRUCT(lease->parent_lease_key);
lease->lease_epoch = 0;
break;
+ case 2:
+ memcpy(&lease->parent_lease_key, buf+32, 16);
+ lease->lease_epoch = SVAL(buf, 48);
+ break;
}
return len;