summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-03-28 10:12:07 -0700
committerJeremy Allison <jra@samba.org>2008-03-28 10:12:07 -0700
commitd1e99642f731919bce36dd089b000ef4433b4450 (patch)
tree2e5f902f9a5748877c4706f621111b18a71193e6 /source3
parent8b29c8f63454604b7d04cfcb171b30eb8e31636c (diff)
downloadsamba-d1e99642f731919bce36dd089b000ef4433b4450.tar.gz
samba-d1e99642f731919bce36dd089b000ef4433b4450.tar.bz2
samba-d1e99642f731919bce36dd089b000ef4433b4450.zip
Fix bug #5326 - OS/2 servers give strange "high word" replies for print jobs.
Jeremy. (This used to be commit d090d25cb702965b3d5e4635a26a06f2b62d235d)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clireadwrite.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index 668a2693d3..e79fd90614 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -745,7 +745,9 @@ ssize_t cli_write(struct cli_state *cli,
break;
bwritten += SVAL(cli->inbuf, smb_vwv2);
- bwritten += (((int)(SVAL(cli->inbuf, smb_vwv4)))<<16);
+ if (writesize > 0xFFFF) {
+ bwritten += (((int)(SVAL(cli->inbuf, smb_vwv4)))<<16);
+ }
}
while (received < issued && cli_receive_smb(cli)) {