diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/smb2_lock.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/smbd/smb2_lock.c b/source3/smbd/smb2_lock.c index 9e699159ff..7b01889c46 100644 --- a/source3/smbd/smb2_lock.c +++ b/source3/smbd/smb2_lock.c @@ -277,7 +277,6 @@ static struct tevent_req *smbd_smb2_lock_send(TALLOC_CTX *mem_ctx, } for (i=0; i<in_lock_count; i++) { - uint64_t max_count; bool invalid = false; switch (in_locks[i].flags) { @@ -346,12 +345,6 @@ static struct tevent_req *smbd_smb2_lock_send(TALLOC_CTX *mem_ctx, } else { locks[i].brltype = UNLOCK_LOCK; } - - max_count = UINT64_MAX - locks[i].offset; - if (locks[i].count > max_count) { - tevent_req_nterror(req, NT_STATUS_INVALID_LOCK_RANGE); - return tevent_req_post(req, ev); - } } state->locks = locks; |