diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-03-06 07:45:06 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-03-06 16:37:20 +0100 |
commit | 196a5d038886bdea678ac9ae97bdf9dab825e23f (patch) | |
tree | e16561f4d669a5c675cd7ebff56e8b16c1ef2dd0 /source3/smbd/aio.c | |
parent | 4b6cbe80b28b7a99ba8f35190d809f5a439fdd22 (diff) | |
download | samba-196a5d038886bdea678ac9ae97bdf9dab825e23f.tar.gz samba-196a5d038886bdea678ac9ae97bdf9dab825e23f.tar.bz2 samba-196a5d038886bdea678ac9ae97bdf9dab825e23f.zip |
s3:signing: the seqnum should only be decremented by 1 for ntcancel requests
[MS-SMB] 3.3.5.1 Receiving Any Message says that the seqnum
is incremented by only for ntcancel requests for any other
request it's by incremented by 2, even if it doesn't expect
a response.
metze
Diffstat (limited to 'source3/smbd/aio.c')
-rw-r--r-- | source3/smbd/aio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 6b19e098e5..cfa4b430eb 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -347,7 +347,7 @@ static int handle_aio_read_complete(struct aio_extra *aio_ex) /* If errno is ECANCELED then don't return anything to the * client. */ if (errno == ECANCELED) { - srv_cancel_sign_response(aio_ex->req->mid); + srv_cancel_sign_response(aio_ex->req->mid, false); return 0; } @@ -441,7 +441,7 @@ static int handle_aio_write_complete(struct aio_extra *aio_ex) /* If errno is ECANCELED then don't return anything to the * client. */ if (errno == ECANCELED) { - srv_cancel_sign_response(aio_ex->req->mid); + srv_cancel_sign_response(aio_ex->req->mid, false); return 0; } @@ -534,7 +534,7 @@ void smbd_aio_complete_mid(unsigned int mid) if (!aio_ex) { DEBUG(3,("smbd_aio_complete_mid: Can't find record to " "match mid %u.\n", mid)); - srv_cancel_sign_response(mid); + srv_cancel_sign_response(mid, false); return; } @@ -544,7 +544,7 @@ void smbd_aio_complete_mid(unsigned int mid) * ignore. */ DEBUG( 3,( "smbd_aio_complete_mid: file closed whilst " "aio outstanding (mid[%u]).\n", mid)); - srv_cancel_sign_response(mid); + srv_cancel_sign_response(mid, false); return; } |