From: Jeremy Allison Date: Tue, 14 Dec 2004 00:33:53 +0000 (+0000) Subject: r4188: Ensure we add in the upper length in the right place ! X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5502 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d4e57f06c4f75f42036e91401b0d0392647752b;p=thirdparty%2Fsamba.git r4188: Ensure we add in the upper length in the right place ! Jeremy. --- diff --git a/source/libsmb/clireadwrite.c b/source/libsmb/clireadwrite.c index 64f16e94ca0..1785905ff2e 100644 --- a/source/libsmb/clireadwrite.c +++ b/source/libsmb/clireadwrite.c @@ -122,7 +122,7 @@ ssize_t cli_read(struct cli_state *cli, int fnum, char *buf, off_t offset, size_ } size2 = SVAL(cli->inbuf, smb_vwv5); - size2 |= (SVAL(cli->inbuf, smb_vwv7) & 1); + size2 |= (((unsigned int)(SVAL(cli->inbuf, smb_vwv7) & 1)) << 16); if (size2 > readsize) { DEBUG(5,("server returned more than we wanted!\n"));