From 5f868bc1acc9bdaed32ae70fb9906334663ccfff Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 17 Nov 2004 22:00:15 +0000 Subject: r3826: - added testing of ea lists in NTTRANS CREATE - fixed push/pull of chained ea lists - fixed a bug in the nttrans wire encoding (This used to be commit fcd09224076508f9c10095bf2e2c394232a4d297) --- source4/smb_server/nttrans.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source4/smb_server') diff --git a/source4/smb_server/nttrans.c b/source4/smb_server/nttrans.c index 49c41181a8..3b06dc0240 100644 --- a/source4/smb_server/nttrans.c +++ b/source4/smb_server/nttrans.c @@ -131,12 +131,9 @@ static NTSTATUS nttrans_create(struct smbsrv_request *req, return NT_STATUS_NO_MEMORY; } - /* w2k gets the length of the list wrong on the wire - auto-fix */ - SIVAL(blob.data, 0, ea_length); - - status = ea_pull_list(&blob, io, - &io->ntcreatex.in.ea_list->num_eas, - &io->ntcreatex.in.ea_list->eas); + status = ea_pull_list_chained(&blob, io, + &io->ntcreatex.in.ea_list->num_eas, + &io->ntcreatex.in.ea_list->eas); if (!NT_STATUS_IS_OK(status)) { return status; } -- cgit