diff options
author | Jeremy Allison <jra@samba.org> | 2006-01-24 20:15:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:06:14 -0500 |
commit | 7756059d38e5702b4ba51f71cefb2a4656244cf7 (patch) | |
tree | 9528ee5447bb14e2a51de0947d65d3872031981f /source3/libsmb | |
parent | 6afd823e42aef3cc64a64d085438cc4d14ef3498 (diff) | |
download | samba-7756059d38e5702b4ba51f71cefb2a4656244cf7.tar.gz samba-7756059d38e5702b4ba51f71cefb2a4656244cf7.tar.bz2 samba-7756059d38e5702b4ba51f71cefb2a4656244cf7.zip |
r13119: Fix for #1779 from William Jojo <jojowil@hvcc.edu>
Jeremy.
(This used to be commit 103cac7dd314117b15e27fd263a64beeb36ed6e6)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clireadwrite.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c index 55e36b646b..a080bd3c64 100644 --- a/source3/libsmb/clireadwrite.c +++ b/source3/libsmb/clireadwrite.c @@ -49,8 +49,9 @@ static BOOL cli_issue_read(struct cli_state *cli, int fnum, off_t offset, SSVAL(cli->outbuf,smb_vwv7,((size >> 16) & 1)); SSVAL(cli->outbuf,smb_mid,cli->mid + i); - if (bigoffset) - SIVAL(cli->outbuf,smb_vwv10,(offset>>32) & 0xffffffff); + if (bigoffset) { + SIVAL(cli->outbuf,smb_vwv10,(((SMB_BIG_UINT)offset)>>32) & 0xffffffff); + } return cli_send_smb(cli); } @@ -302,8 +303,9 @@ static BOOL cli_issue_write(struct cli_state *cli, int fnum, off_t offset, SSVAL(cli->outbuf,smb_vwv11, smb_buf(cli->outbuf) - smb_base(cli->outbuf)); - if (large_writex) - SIVAL(cli->outbuf,smb_vwv12,(offset>>32) & 0xffffffff); + if (large_writex) { + SIVAL(cli->outbuf,smb_vwv12,(((SMB_BIG_UINT)offset)>>32) & 0xffffffff); + } p = smb_base(cli->outbuf) + SVAL(cli->outbuf,smb_vwv11); memcpy(p, buf, size); |