[SCM] Samba Shared Repository - branch v3-6-test updated

Jeremy Allison jra at samba.org
Thu Feb 3 13:01:42 MST 2011


The branch, v3-6-test has been updated
       via  39a3be5 Fix a couple of missing checks on talloc returns.
      from  f4bc9df replace: Try to fix broken sys/capabilites.h on Linux.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test


- Log -----------------------------------------------------------------
commit 39a3be57e19736af1b640c71f2c5722516aa8e07
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Feb 2 12:20:18 2011 -0800

    Fix a couple of missing checks on talloc returns.
    
    Autobuild-User: Jeremy Allison <jra at samba.org>
    Autobuild-Date: Wed Feb  2 22:23:46 CET 2011 on sn-devel-104
    (cherry picked from commit 40850b3b275494b91b59ebc5e25e11e2235ed722)

-----------------------------------------------------------------------

Summary of changes:
 source3/librpc/rpc/dcerpc_ep.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/librpc/rpc/dcerpc_ep.c b/source3/librpc/rpc/dcerpc_ep.c
index b0c9104..cfbe0ab 100644
--- a/source3/librpc/rpc/dcerpc_ep.c
+++ b/source3/librpc/rpc/dcerpc_ep.c
@@ -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;
 		}
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list