1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

s3: Slightly simplify smbd_smb2_request_next_vector

Metze, Jeremy, please check!
This commit is contained in:
Volker Lendecke 2011-05-06 11:26:56 +02:00
parent a8798d8bce
commit 2b40899bd3

View File

@ -2018,9 +2018,11 @@ static int smbd_smb2_request_next_vector(struct tstream_context *stream,
invalid = true;
}
if ((body_size % 2) != 0) {
body_size -= 1;
}
/*
* Mask out the lowest bit, the "dynamic" part
* of body_size.
*/
body_size &= ~1;
if (body_size > (full_size - SMB2_HDR_BODY)) {
/*