r20114: from Julien Kerihuel <j.kerihuel@openchange.org>, thanks!:
authorStefan Metzmacher <metze@samba.org>
Tue, 12 Dec 2006 07:46:06 +0000 (07:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:29:09 +0000 (14:29 -0500)
  I've attached the patch which fix this problem. I've only added
  DCERPC_NDR_REF_ALLOC to the connection flags. This way it is processed
  correctly by ndr_pull_init_flags and added to the ndr flags of the pull
  structure.

metze
(This used to be commit ed4c7ce547c61907291d19c172d5eb6f4c4981fe)

source4/rpc_server/remote/dcesrv_remote.c

index d2aabc80335101603523616e53de9b1ba4b42f8f..3bc3f79bb51a2a64698f3ba519bab72ba35f4cc6 100644 (file)
@@ -167,6 +167,8 @@ static NTSTATUS remote_op_dispatch(struct dcesrv_call_state *dce_call, TALLOC_CT
                ndr_print_function_debug(call->ndr_print, name, NDR_IN | NDR_SET_VALUES, r);            
        }
 
+       private->c_pipe->conn->flags |= DCERPC_NDR_REF_ALLOC;
+
        /* we didn't use the return code of this function as we only check the last_fault_code */
        dcerpc_ndr_request(private->c_pipe, NULL, table, opnum, mem_ctx,r);