summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-13 16:23:19 +0200
committerVolker Lendecke <vl@samba.org>2008-05-13 16:54:55 +0200
commit660be616b85a32725841877041190a6ec0f122f1 (patch)
treeeda34f22ada8dbe688c251dd6a30dde32d357b2e /source
parent968ff01d5163b232e10276efbcfd6750f97d81a5 (diff)
downloadsamba-660be616b85a32725841877041190a6ec0f122f1.tar.gz
Fix signing problem in the client with transs requests
This is a different fix than Jeremy put into 3-0-test with 040db1ce85 and other branches with different hashes. Jeremy, I think your fix led to bug 5436, so I reverted your fix. This fixes the original problem I found with the transs requests for large rpc queries in a different way. Please check! Thanks, Volker
Diffstat (limited to 'source')
-rw-r--r--source/libsmb/clitrans.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/libsmb/clitrans.c b/source/libsmb/clitrans.c
index f212f499940..441f5a0a892 100644
--- a/source/libsmb/clitrans.c
+++ b/source/libsmb/clitrans.c
@@ -113,6 +113,9 @@ BOOL cli_send_trans(struct cli_state *cli, int trans,
this_lparam = MIN(lparam-tot_param,cli->max_xmit - 500); /* hack */
this_ldata = MIN(ldata-tot_data,cli->max_xmit - (500+this_lparam));
+ client_set_trans_sign_state_off(cli, mid);
+ client_set_trans_sign_state_on(cli, mid);
+
set_message(cli->outbuf,trans==SMBtrans?8:9,0,True);
SCVAL(cli->outbuf,smb_com,(trans==SMBtrans ? SMBtranss : SMBtranss2));