Final fix for #7331 - Compound async SMB 2 requests don't work right.
authorJeremy Allison <jra@samba.org>
Mon, 19 Apr 2010 03:23:54 +0000 (20:23 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 19 Apr 2010 03:23:54 +0000 (20:23 -0700)
commit59fa1e1890e0a007f56776d9539bf3f1ce074a34
treed0a19706135a161f4a195ef08159a58b0f6d71e6
parent058d4a21afa843241c6a91a251fb46a327037194
Final fix for #7331 - Compound async SMB 2 requests don't work right.

Don't free the cancelled SMB2 req early, let the cancelation
function take care of it. Return a NT_STATUS_CANCELLED when
we find and cancel a request. Fix our SMB2 error returns to
correctly set the structuresize to 9, and add the expected
zero byte (see section 2.2.2 in the SMB2 spec.).

This causes Samba to pass the test program in this bug report
that W2K8R2 fails (heh heh :-). This is because we always cause
compound requests to get to a cancelation point before dealing
with a cancel request.

Jeremy.
source3/smbd/smb2_notify.c
source3/smbd/smb2_server.c