1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

s3:smbd: allow the offset to the path being 0 in SMB2 create

metze
This commit is contained in:
Stefan Metzmacher 2009-06-30 13:25:21 +02:00
parent d47bb0a96c
commit 99c1e4f19a

View File

@ -88,7 +88,9 @@ NTSTATUS smbd_smb2_request_process_create(struct smbd_smb2_request *req)
in_name_offset = SVAL(inbody, 0x2C);
in_name_length = SVAL(inbody, 0x2E);
if (in_name_offset != (SMB2_HDR_BODY + (body_size & 0xFFFFFFFE))) {
if (in_name_offset == 0 && in_name_length == 0) {
/* This is ok */
} else if (in_name_offset != (SMB2_HDR_BODY + (body_size & 0xFFFFFFFE))) {
return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER);
}