From: Volker Lendecke Date: Tue, 13 May 2008 14:23:19 +0000 (+0200) Subject: Fix signing problem in the client with transs requests X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6200e8886b29469cb1dbbe441e4f642fb28b83f2;p=thirdparty%2Fsamba.git 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 --- diff --git a/source/libsmb/clitrans.c b/source/libsmb/clitrans.c index aa9c2fb2966..4bb70f1a088 100644 --- a/source/libsmb/clitrans.c +++ b/source/libsmb/clitrans.c @@ -112,6 +112,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); + cli_set_message(cli->outbuf,trans==SMBtrans?8:9,0,True); SCVAL(cli->outbuf,smb_com,(trans==SMBtrans ? SMBtranss : SMBtranss2));