r7658: don't timeout at the smb level for rpc requests as otherwise some rpc
authorAndrew Tridgell <tridge@samba.org>
Thu, 16 Jun 2005 23:47:06 +0000 (23:47 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:18 +0000 (13:18 -0500)
level sign/seal mechanisms can break
(This used to be commit 9df569f023f9a1e0d8c35de8135a344933bc69bf)

source4/librpc/rpc/dcerpc_smb.c

index 9096168b6449029ab0cd51933b94f52af02ab77b..df421fb16d2bfca40098af86381c5c10f891082e 100644 (file)
@@ -294,6 +294,10 @@ static NTSTATUS smb_send_request(struct dcerpc_connection *c, DATA_BLOB *blob, B
        io.writex.in.count = blob->length;
        io.writex.in.data = blob->data;
 
+       /* we must not timeout at the smb level for rpc requests, as otherwise
+          signing/sealing can be messed up */
+       smb->tree->session->transport->options.request_timeout = 0;
+
        req = smb_raw_write_send(smb->tree, &io);
        if (req == NULL) {
                return NT_STATUS_NO_MEMORY;