r24983: setup the correct talloc name for structures used in the generated
authorStefan Metzmacher <metze@samba.org>
Thu, 6 Sep 2007 13:48:01 +0000 (13:48 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:03:44 +0000 (15:03 -0500)
server stubs

metze

source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm

index b6980acc0f7b8e9a7d725b8954effb079779ab44..ed17fcc0da1ab5af2b6337101b57e049303aaae1 100644 (file)
@@ -111,7 +111,10 @@ static NTSTATUS $name\__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_C
                return NT_STATUS_NET_WRITE_FAULT;
        }
 
-       *r = talloc_size(mem_ctx, ndr_table_$name.calls[opnum].struct_size);
+       *r = talloc_named(mem_ctx,
+                         ndr_table_$name.calls[opnum].struct_size,
+                         \"struct %s\",
+                         ndr_table_$name.calls[opnum].name);
        NT_STATUS_HAVE_NO_MEMORY(*r);
 
         /* unravel the NDR for the packet */