diff options
author | Jeremy Allison <jra@samba.org> | 2003-08-02 03:06:07 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-08-02 03:06:07 +0000 |
commit | 760e58cf807e099b450c83fbdb8d393d53b9dca3 (patch) | |
tree | 5c0735dc3a69c9e789becdc6fcffc4a7161f3b97 /source3/smbd/trans2.c | |
parent | 2443f7ffa20a683eabb792182cb0206402ad8059 (diff) | |
download | samba-760e58cf807e099b450c83fbdb8d393d53b9dca3.tar.gz samba-760e58cf807e099b450c83fbdb8d393d53b9dca3.tar.bz2 samba-760e58cf807e099b450c83fbdb8d393d53b9dca3.zip |
Add the same signing code to the server. Ensure we use identical session
numbers and MIDs when in trans/trans2/nttrans code.
Jeremy.
(This used to be commit 901544b29b4d815709b3dbad3012f1d2c419d904)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r-- | source3/smbd/trans2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 9998887793..86906fa5be 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -3359,6 +3359,8 @@ int reply_trans2(connection_struct *conn, memcpy( data, smb_base(inbuf) + dsoff, num_data); } + srv_signing_trans_start(SVAL(inbuf,smb_mid)); + if(num_data_sofar < total_data || num_params_sofar < total_params) { /* We need to send an interim response then receive the rest of the parameter/data bytes */ @@ -3531,6 +3533,7 @@ int reply_trans2(connection_struct *conn, SAFE_FREE(params); SAFE_FREE(data); END_PROFILE(SMBtrans2); + srv_signing_trans_stop(); return ERROR_DOS(ERRSRV,ERRerror); } @@ -3541,6 +3544,8 @@ int reply_trans2(connection_struct *conn, an error packet. */ + srv_signing_trans_stop(); + SAFE_FREE(params); SAFE_FREE(data); END_PROFILE(SMBtrans2); @@ -3550,6 +3555,7 @@ int reply_trans2(connection_struct *conn, bad_param: + srv_signing_trans_stop(); SAFE_FREE(params); SAFE_FREE(data); END_PROFILE(SMBtrans2); |