1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

Fix a couple of missing checks on talloc returns.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Feb  2 22:23:46 CET 2011 on sn-devel-104
This commit is contained in:
Jeremy Allison 2011-02-02 12:20:18 -08:00
parent 885887ac1b
commit 40850b3b27

View File

@ -70,6 +70,10 @@ NTSTATUS dcerpc_binding_vector_create(TALLOC_CTX *mem_ctx,
b->object = iface->syntax_id;
if (b->transport == NCACN_NP) {
b->host = talloc_asprintf(b, "\\\\%s", global_myname());
if (b->host == NULL) {
status = NT_STATUS_NO_MEMORY;
goto done;
}
}
bvec->bindings[i] = *b;
@ -162,6 +166,7 @@ static NTSTATUS ep_register(const struct ndr_interface_table *iface,
map_tower = talloc_zero(entries, struct epm_twr_t);
if (map_tower == NULL) {
status = NT_STATUS_NO_MEMORY;
goto done;
}