From c692accbb782729c10e4e233305c16f5be2a2e31 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 6 Jan 2009 23:25:41 +0100 Subject: [PATCH] Add a talloc failure check --- source4/rpc_server/epmapper/rpc_epmapper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source4/rpc_server/epmapper/rpc_epmapper.c b/source4/rpc_server/epmapper/rpc_epmapper.c index 5491bd242a5..b9b02962be7 100644 --- a/source4/rpc_server/epmapper/rpc_epmapper.c +++ b/source4/rpc_server/epmapper/rpc_epmapper.c @@ -179,6 +179,9 @@ static error_status_t dcesrv_epm_Map(struct dcesrv_call_state *dce_call, TALLOC_ ZERO_STRUCT(*r->out.entry_handle); r->out.num_towers = talloc(mem_ctx, uint32_t); + if (!r->out.num_towers) { + return EPMAPPER_STATUS_NO_MEMORY; + } *r->out.num_towers = 1; r->out.towers = talloc(mem_ctx, struct epm_twr_p_t); if (!r->out.towers) { -- 2.11.4.GIT