summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-12-01 06:53:10 +0000
committerJeremy Allison <jra@samba.org>2003-12-01 06:53:10 +0000
commit570f2b73b4c0088fea929bcb6beb1a17b3c1aba3 (patch)
treee2bfcd75f6665f5c309b56ba8932f085f44832c6 /source3/smbd/trans2.c
parent27891bdef10069e70e240bbea53f75359cec78eb (diff)
downloadsamba-570f2b73b4c0088fea929bcb6beb1a17b3c1aba3.tar.gz
samba-570f2b73b4c0088fea929bcb6beb1a17b3c1aba3.tar.bz2
samba-570f2b73b4c0088fea929bcb6beb1a17b3c1aba3.zip
Ensure the server can cope with multiple secondary trans
requests when signing is turned on. Jeremy. (This used to be commit 206464a748a59b1d485d4d3d0cb4d257d60fbd00)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 56d1aae3a2..525b015379 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -3523,6 +3523,7 @@ int reply_trans2(connection_struct *conn,
/* We need to send an interim response then receive the rest
of the parameter/data bytes */
outsize = set_message(outbuf,0,0,True);
+ srv_signing_trans_stop();
if (!send_smb(smbd_server_fd(),outbuf))
exit_server("reply_trans2: send_smb failed.");
@@ -3536,6 +3537,13 @@ int reply_trans2(connection_struct *conn,
ret = receive_next_smb(inbuf,bufsize,SMB_SECONDARY_WAIT);
+ /*
+ * The sequence number for the trans reply is always
+ * based on the last secondary received.
+ */
+
+ srv_signing_trans_start(SVAL(inbuf,smb_mid));
+
if ((ret &&
(CVAL(inbuf, smb_com) != SMBtranss2)) || !ret) {
outsize = set_message(outbuf,0,0,True);