Author: vlendec Date: 2007-08-13 14:40:56 +0000 (Mon, 13 Aug 2007) New Revision: 24362
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24362 Log: Initialize padding also when no params are sent back Modified: branches/SAMBA_3_2/source/smbd/trans2.c Changeset: Modified: branches/SAMBA_3_2/source/smbd/trans2.c =================================================================== --- branches/SAMBA_3_2/source/smbd/trans2.c 2007-08-13 14:29:44 UTC (rev 24361) +++ branches/SAMBA_3_2/source/smbd/trans2.c 2007-08-13 14:40:56 UTC (rev 24362) @@ -699,13 +699,15 @@ SSVAL(req->outbuf,smb_drdisp, pd - pdata); } + /* Initialize the padding for alignment */ + + if (alignment_offset != 0) { + memset(smb_buf(req->outbuf), 0, alignment_offset); + } + /* Copy the param bytes into the packet */ if(params_sent_thistime) { - if (alignment_offset != 0) { - memset(smb_buf(req->outbuf), 0, - alignment_offset); - } memcpy((smb_buf(req->outbuf)+alignment_offset), pp, params_sent_thistime); }