summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-10-14 17:02:09 +0000
committerJeremy Allison <jra@samba.org>2003-10-14 17:02:09 +0000
commit613974ffd8d1d6db444cabcd3a8e16f055959236 (patch)
tree1680cbe512fb3b3b998508657e0c2ceb0f4a3f0d /source3
parenteaed556ebada5dbcbe2d25cf5297e408c8d7a27c (diff)
downloadsamba-613974ffd8d1d6db444cabcd3a8e16f055959236.tar.gz
samba-613974ffd8d1d6db444cabcd3a8e16f055959236.tar.bz2
samba-613974ffd8d1d6db444cabcd3a8e16f055959236.zip
Enable us to see what sequence number we were expecting when we fail a sign
(should help track down out of sequence bugs). Jeremy. (This used to be commit c6a36d4e486bf1aa384adf7db37878e485476216)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smb_signing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/smb_signing.c b/source3/libsmb/smb_signing.c
index 08ff655a3f..8a4401ef19 100644
--- a/source3/libsmb/smb_signing.c
+++ b/source3/libsmb/smb_signing.c
@@ -385,8 +385,8 @@ static BOOL client_check_incoming_message(char *inbuf, struct smb_sign_info *si)
for (i = 0; i < 10; i++, reply_seq_number++) {
simple_packet_signature(data, (const unsigned char *)inbuf, reply_seq_number, calc_md5_mac);
if (memcmp(server_sent_mac, calc_md5_mac, 8) == 0) {
- DEBUG(0,("client_check_incoming_message: out of seq. seq num %u matches.\n",
- reply_seq_number ));
+ DEBUG(0,("client_check_incoming_message: out of seq. seq num %u matches. \
+We were expecting seq %u\n", reply_seq_number, saved_seq ));
break;
}
}
@@ -748,8 +748,8 @@ static BOOL srv_check_incoming_message(char *inbuf, struct smb_sign_info *si)
for (i = 0; i < 10; i++, reply_seq_number++) {
simple_packet_signature(data, (const unsigned char *)inbuf, reply_seq_number, calc_md5_mac);
if (memcmp(server_sent_mac, calc_md5_mac, 8) == 0) {
- DEBUG(0,("srv_check_incoming_message: out of seq. seq num %u matches.\n",
- reply_seq_number ));
+ DEBUG(0,("srv_check_incoming_message: out of seq. seq num %u matches. \
+We were expecting seq %u\n", reply_seq_number, saved_seq ));
break;
}
}