1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

r14142: fixed ascii padding of nttrans create in server too

(This used to be commit 2cd4cd1674b7491abf796f625ee098bb2c03e631)
This commit is contained in:
Andrew Tridgell 2006-03-10 11:49:38 +00:00 committed by Gerald (Jerry) Carter
parent 2d7353dea4
commit 9259790df7

View File

@ -136,8 +136,8 @@ static NTSTATUS nttrans_create(struct smbsrv_request *req,
io->ntcreatex.in.ea_list = NULL;
req_pull_string(req, &io->ntcreatex.in.fname,
params + 54,
trans->in.params.length - 54,
params + 53,
MIN(fname_len+1, trans->in.params.length - 53),
STR_NO_RANGE_CHECK | STR_TERMINATE);
if (!io->ntcreatex.in.fname) {
return NT_STATUS_INVALID_PARAMETER;