[PATCH] Use 32 bit storage for nttrans counts

Amin Azez azez at ufomechanic.net
Fri Mar 7 10:55:49 GMT 2008


Erroneous 16bit storage for nttrans counts meant that nttrans behaved
"strangely" for sizes of over 64K

As 32 bit is used in the SMB message and specified in
http://us4.samba.org/samba/ftp/specs/draft-leach-cifs-v1-spec-02.txt
section 3.13.2
this fix changes storage to match.

Signed-off-by: Amin Azez <azez at ufomechanic.net>
---
 source/smb_server/smb/nttrans.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ac5e86d561d2b5fbc68d6eab2f15e54cc696e406.diff
Type: text/x-patch
Size: 1267 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080307/13898d44/ac5e86d561d2b5fbc68d6eab2f15e54cc696e406.bin


More information about the samba-technical mailing list