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:29:47 +0000 (16:29 +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
(This used to be commit c572d537e088a3fffb057181cad9a3692e40b815)

source3/libsmb/clitrans.c

index aa9c2fb296616b8adf0d754b75fdfd654490e1a0..4bb70f1a088d831481cc8bef2c412eb4f3bcfaaf 100644 (file)
@@ -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));