Author: tridge Date: 2005-12-02 03:17:40 +0000 (Fri, 02 Dec 2005) New Revision: 12006
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12006 Log: don't require callers to fill in pad bytes in SMB2 calls Modified: branches/SAMBA_4_0/source/libcli/smb2/close.c branches/SAMBA_4_0/source/libcli/smb2/ioctl.c branches/SAMBA_4_0/source/libcli/smb2/read.c branches/SAMBA_4_0/source/libcli/smb2/session.c Changeset: Modified: branches/SAMBA_4_0/source/libcli/smb2/close.c =================================================================== --- branches/SAMBA_4_0/source/libcli/smb2/close.c 2005-12-02 03:16:42 UTC (rev 12005) +++ branches/SAMBA_4_0/source/libcli/smb2/close.c 2005-12-02 03:17:40 UTC (rev 12006) @@ -36,7 +36,7 @@ if (req == NULL) return NULL; SSVAL(req->out.body, 0x02, io->in.flags); - SIVAL(req->out.body, 0x04, io->in._pad); + SIVAL(req->out.body, 0x04, 0); /* pad */ smb2_push_handle(req->out.body+0x08, &io->in.handle); smb2_transport_send(req); Modified: branches/SAMBA_4_0/source/libcli/smb2/ioctl.c =================================================================== --- branches/SAMBA_4_0/source/libcli/smb2/ioctl.c 2005-12-02 03:16:42 UTC (rev 12005) +++ branches/SAMBA_4_0/source/libcli/smb2/ioctl.c 2005-12-02 03:17:40 UTC (rev 12006) @@ -37,7 +37,7 @@ io->in.in.length+io->in.out.length); if (req == NULL) return NULL; - SSVAL(req->out.body, 0x02, io->in._pad); + SSVAL(req->out.body, 0x02, 0); /* pad */ SIVAL(req->out.body, 0x04, io->in.function); smb2_push_handle(req->out.body+0x08, &io->in.handle); Modified: branches/SAMBA_4_0/source/libcli/smb2/read.c =================================================================== --- branches/SAMBA_4_0/source/libcli/smb2/read.c 2005-12-02 03:16:42 UTC (rev 12005) +++ branches/SAMBA_4_0/source/libcli/smb2/read.c 2005-12-02 03:17:40 UTC (rev 12006) @@ -35,7 +35,7 @@ req = smb2_request_init_tree(tree, SMB2_OP_READ, 0x31, 0); if (req == NULL) return NULL; - SSVAL(req->out.body, 0x02, io->in._pad); + SSVAL(req->out.body, 0x02, 0); /* pad */ SIVAL(req->out.body, 0x04, io->in.length); SBVAL(req->out.body, 0x08, io->in.offset); smb2_push_handle(req->out.body+0x10, &io->in.handle); Modified: branches/SAMBA_4_0/source/libcli/smb2/session.c =================================================================== --- branches/SAMBA_4_0/source/libcli/smb2/session.c 2005-12-02 03:16:42 UTC (rev 12005) +++ branches/SAMBA_4_0/source/libcli/smb2/session.c 2005-12-02 03:17:40 UTC (rev 12006) @@ -73,7 +73,7 @@ if (req == NULL) return NULL; SBVAL(req->out.hdr, SMB2_HDR_UID, session->uid); - SSVAL(req->out.body, 0x02, io->in._pad); + SSVAL(req->out.body, 0x02, 0); /* pad */ SIVAL(req->out.body, 0x04, io->in.unknown2); SIVAL(req->out.body, 0x08, io->in.unknown3);
