summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-10 11:49:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:56:54 -0500
commit9259790df7377f460d54ba6f86bc66b9e8e1ca11 (patch)
treea6d7fc610cc126bd9138707cf866c381cf00cdc5 /source4/smb_server
parent2d7353dea47f849ce6f18ecb6f896676f0a167df (diff)
downloadsamba-9259790df7377f460d54ba6f86bc66b9e8e1ca11.tar.gz
samba-9259790df7377f460d54ba6f86bc66b9e8e1ca11.tar.bz2
samba-9259790df7377f460d54ba6f86bc66b9e8e1ca11.zip
r14142: fixed ascii padding of nttrans create in server too
(This used to be commit 2cd4cd1674b7491abf796f625ee098bb2c03e631)
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb/nttrans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/smb_server/smb/nttrans.c b/source4/smb_server/smb/nttrans.c
index 03f5f398fe..3d898ba1a7 100644
--- a/source4/smb_server/smb/nttrans.c
+++ b/source4/smb_server/smb/nttrans.c
@@ -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;