From 660be616b85a32725841877041190a6ec0f122f1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 13 May 2008 16:23:19 +0200 Subject: [PATCH] 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 --- source/libsmb/clitrans.c | 3 +++ 1 file changed, 3 insertions(+) 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)); -- 2.34.1