summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-08-05 20:05:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:33 -0500
commita8627a857630033cca700916d90456c837726ff4 (patch)
tree3322c142862bfa3471517291a4f57ebb91d89dcf /source3
parentac9628de48069be57a5159a6fe0cb0fdb7b33c5d (diff)
downloadsamba-a8627a857630033cca700916d90456c837726ff4.tar.gz
samba-a8627a857630033cca700916d90456c837726ff4.tar.bz2
samba-a8627a857630033cca700916d90456c837726ff4.zip
r17431: Fix bug #4003, reported by dale-keyword-samba.c7b741@codefu.org.
NTcancel doesn't send a reply, so in this case the signing sequence number is only incremented by 1, not 2. Jeremy. (This used to be commit 85841a01987e653a085af00c7c437145686a332b)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smb_signing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libsmb/smb_signing.c b/source3/libsmb/smb_signing.c
index e000d539b4..e277137e9b 100644
--- a/source3/libsmb/smb_signing.c
+++ b/source3/libsmb/smb_signing.c
@@ -852,6 +852,9 @@ void srv_cancel_sign_response(uint16 mid)
while (get_sequence_for_reply(&data->outstanding_packet_list, mid, &dummy_seq))
;
+
+ /* cancel doesn't send a reply so doesn't burn a sequence number. */
+ data->send_seq_num -= 1;
}
/***********************************************************