summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-09-06 13:48:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:03:44 -0500
commit678de9ce6022040403a1afb9157b7ae3af1b027c (patch)
tree650194760d27df73780e29f1c9d2bcb887747c02
parent9aae9b1d243c23b96c0d8d28603b7e0ba25ac1c9 (diff)
downloadsamba-678de9ce6022040403a1afb9157b7ae3af1b027c.tar.gz
r24983: setup the correct talloc name for structures used in the generated
server stubs metze
-rw-r--r--source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm b/source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
index b6980acc0f7..ed17fcc0da1 100644
--- a/source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
+++ b/source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
@@ -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 */