From 6e6374cb5bcffb4df8bdb0a83327fff92b61ac84 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 3 Dec 2004 07:20:30 +0000 Subject: r4055: fixed more places to use type safe allocation macros (This used to be commit eec698254f67365f27b4b7569fa982e22472aca1) --- source4/librpc/rpc/dcerpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/librpc') diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 3526c0adf9..7cd18d2807 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -541,7 +541,7 @@ NTSTATUS dcerpc_bind(struct dcerpc_pipe *p, pkt.u.bind.max_recv_frag = 5840; pkt.u.bind.assoc_group_id = 0; pkt.u.bind.num_contexts = 1; - pkt.u.bind.ctx_list = talloc(mem_ctx, sizeof(pkt.u.bind.ctx_list[0])); + pkt.u.bind.ctx_list = talloc_p(mem_ctx, struct dcerpc_ctx_list); if (!pkt.u.bind.ctx_list) { return NT_STATUS_NO_MEMORY; } @@ -620,7 +620,7 @@ NTSTATUS dcerpc_alter(struct dcerpc_pipe *p, pkt.u.alter.max_recv_frag = 0x2000; pkt.u.alter.assoc_group_id = 0; pkt.u.alter.num_contexts = 1; - pkt.u.alter.ctx_list = talloc(mem_ctx, sizeof(pkt.u.alter.ctx_list[0])); + pkt.u.alter.ctx_list = talloc_p(mem_ctx, struct dcerpc_ctx_list); if (!pkt.u.alter.ctx_list) { return NT_STATUS_NO_MEMORY; } -- cgit