[PATCH 1/2] Flag smb messages array with AND_X and LARGE_REQUEST

Amin Azez azez at ufomechanic.net
Fri Mar 7 17:05:56 GMT 2008

If smb_messages flags show for which opcodes VWV(0)
signifies chaining modes, and also which opcodes can
have requests >64K then the bcc/ req->in.data_size
fixup in smbsrv_recv_smb_request can be more safely

This fix permits nttrans requests >64K to be handled.
It is not yet clear if THAT is a good thing, but this
fix does the current thing more nicely.

Signed-off-by: Amin Azez <azez at ufomechanic.net>

Someone with longtime experience ought to review the
smb_message table and check that AND_X and LARGE_REQUEST have been
applied in all the right places.

 source/smb_server/smb/receive.c |   31 +++++++++++++++++++++----------
 1 files changed, 21 insertions(+), 10 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 89a9d06bbd0a739461a3a3902f56e9982891a36e.diff
Type: text/x-patch
Size: 4918 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080307/df7d12ec/89a9d06bbd0a739461a3a3902f56e9982891a36e.bin

More information about the samba-technical mailing list