summaryrefslogtreecommitdiffstats
path: root/source
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
commit85841a01987e653a085af00c7c437145686a332b (patch)
treef3c29624bed49229b4a20e80c43e4b67774a0522 /source
parent6915adb9780052952e4a1d9e1c3e6cac06f48463 (diff)
downloadsamba-85841a01987e653a085af00c7c437145686a332b.tar.gz
samba-85841a01987e653a085af00c7c437145686a332b.tar.xz
samba-85841a01987e653a085af00c7c437145686a332b.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.
Diffstat (limited to 'source')
-rw-r--r--source/libsmb/smb_signing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/libsmb/smb_signing.c b/source/libsmb/smb_signing.c
index e000d539b49..e277137e9be 100644
--- a/source/libsmb/smb_signing.c
+++ b/source/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;
}
/***********************************************************