[PATCH] s3: Fix chained sesssetupAndX/tconn messages

Tim Prouty tprouty at samba.org
Wed May 6 22:27:35 GMT 2009


Volker (and any other chaining experts),

In master a sesssetupAndX chained with a tconn will not correctly set
the TID in the response header.  I'm seeing an XP client send this
chained sesssetup/tconn when samba has security = share.  Samba's
current behavior is to return a TID of 0 in the smb header rather than
the actual TID.  This patch also updates the UID in the header as
well.  I wanted to have someone who knows the chaining code well
review this before I push it.

I spent a bit of time working on a torture test to make it easier to
reproduce, but the infrastructure isn't quite there to easily chain
sesssetupAndX messages.  Since I don't have a test, I attached two
very small pcaps of the before and after to better show the bug.
Notice in the before pcap the response has a TID of 0.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: chained_sesssetupAndX_after.pcap
Type: application/octet-stream
Size: 630 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090506/e4f93069/chained_sesssetupAndX_after.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chained_sesssetupAndX_before.pcap
Type: application/octet-stream
Size: 630 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090506/e4f93069/chained_sesssetupAndX_before.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-Fix-chained-sesssetupAndX-tconn-messages.patch
Type: application/octet-stream
Size: 1263 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090506/e4f93069/0001-s3-Fix-chained-sesssetupAndX-tconn-messages.obj


More information about the samba-technical mailing list