summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-06 23:25:41 +0100
committerVolker Lendecke <vl@samba.org>2009-01-06 23:27:24 +0100
commitc692accbb782729c10e4e233305c16f5be2a2e31 (patch)
tree51cffcf2992b774854101334ad22cd4b2203f9e3 /source4
parentee9dff71e1a3e6749b946e19e15ef1c077a021cf (diff)
downloadsamba-c692accbb782729c10e4e233305c16f5be2a2e31.tar.gz
samba-c692accbb782729c10e4e233305c16f5be2a2e31.tar.bz2
samba-c692accbb782729c10e4e233305c16f5be2a2e31.zip
Add a talloc failure check
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/epmapper/rpc_epmapper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/rpc_server/epmapper/rpc_epmapper.c b/source4/rpc_server/epmapper/rpc_epmapper.c
index 5491bd242a..b9b02962be 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) {