summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/clitransport.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-10 16:09:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:08 -0500
commit3b42d207efccbb31f94626f8fd98379e4a32cc35 (patch)
tree069f7bbed3880f7810e75e2d9d7b3dcad0a68fb4 /source4/libcli/raw/clitransport.c
parent3cdaf4c9065f94e931c62cef1f718d3884488aa1 (diff)
downloadsamba-3b42d207efccbb31f94626f8fd98379e4a32cc35.tar.gz
samba-3b42d207efccbb31f94626f8fd98379e4a32cc35.tar.bz2
samba-3b42d207efccbb31f94626f8fd98379e4a32cc35.zip
r11649: - add support for ntcancel replies (they only happen in error cases,
e.g when you supply an invalid TID or VUID) - as we don't yet understand how to check the smb_signing of this replies, we just ignore the whole packet abartlet,jra,tridge: can someone try to find out how to create and verify the signatures for this replies. what I noticed is that still use the increment by one for the request, and later requests are still generated fine, only the generating and verifying of the ntcancel replies make problems metze (This used to be commit e6eb0fd2c2f45d6f612d74c6b527c7b17094c907)
Diffstat (limited to 'source4/libcli/raw/clitransport.c')
-rw-r--r--source4/libcli/raw/clitransport.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c
index f579457252..2580df4aeb 100644
--- a/source4/libcli/raw/clitransport.c
+++ b/source4/libcli/raw/clitransport.c
@@ -391,6 +391,9 @@ static NTSTATUS smbcli_transport_finish_recv(void *private, DATA_BLOB blob)
if (req->mid == mid) break;
}
+ /* see if it's a ntcancel reply for the current MID */
+ req = smbcli_handle_ntcancel_reply(req, len, hdr);
+
if (!req) {
DEBUG(1,("Discarding unmatched reply with mid %d op %d\n", mid, op));
goto error;