Fix signing problem in the client with transs requests
authorVolker Lendecke <vl@samba.org>
Tue, 13 May 2008 14:23:19 +0000 (16:23 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 13 May 2008 14:54:55 +0000 (16:54 +0200)
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

index f212f499940620110264aa97c6ebd4b1da57a0e5..441f5a0a8925b493ce27859fe6ee3de552fd0cce 100644 (file)
@@ -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));