diff options
author | Jeremy Allison <jra@samba.org> | 2003-12-01 06:53:21 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-12-01 06:53:21 +0000 |
commit | d75819ebcf072b7c8d428db413ec492db3f34075 (patch) | |
tree | 50602501f6f9b4422536f2f8879492fc8f137354 /source3/smbd/ipc.c | |
parent | 95b77efc1bbe8c8f633676480fced19b9c129c3b (diff) | |
download | samba-d75819ebcf072b7c8d428db413ec492db3f34075.tar.gz samba-d75819ebcf072b7c8d428db413ec492db3f34075.tar.bz2 samba-d75819ebcf072b7c8d428db413ec492db3f34075.zip |
Ensure the server can cope with multiple secondary trans
requests when signing is turned on.
Jeremy.
(This used to be commit b97596df7834a80b648022e22983cab5dfb0f7dd)
Diffstat (limited to 'source3/smbd/ipc.c')
-rw-r--r-- | source3/smbd/ipc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c index 86d982b022..dd92cc4e4d 100644 --- a/source3/smbd/ipc.c +++ b/source3/smbd/ipc.c @@ -445,6 +445,7 @@ int reply_trans(connection_struct *conn, char *inbuf,char *outbuf, int size, int of the parameter/data bytes */ outsize = set_message(outbuf,0,0,True); show_msg(outbuf); + srv_signing_trans_stop(); if (!send_smb(smbd_server_fd(),outbuf)) exit_server("reply_trans: send_smb failed."); } @@ -456,6 +457,13 @@ int reply_trans(connection_struct *conn, char *inbuf,char *outbuf, int size, int 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) != SMBtranss)) || !ret) { if(ret) { DEBUG(0,("reply_trans: Invalid secondary trans packet\n")); |