[SCM] Samba Shared Repository - branch master updated

Matthias Dieter Wallnöfer mdw at samba.org
Mon Mar 15 06:50:52 MDT 2010


The branch, master has been updated
       via  163e559... s4:registry - rpc - don't crash when communication partner isn't available
      from  cc3eec1... s4:registry - util.c - treat unsupported and binary values as the same in the conversion functions

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 163e559606d55cce63346b01498417770761dd64
Author: Matthias Dieter Wallnöfer <mwallnoefer at yahoo.de>
Date:   Mon Mar 15 13:44:00 2010 +0100

    s4:registry - rpc - don't crash when communication partner isn't available

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

Summary of changes:
 source4/lib/registry/rpc.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/lib/registry/rpc.c b/source4/lib/registry/rpc.c
index e201380..f3be79b 100644
--- a/source4/lib/registry/rpc.c
+++ b/source4/lib/registry/rpc.c
@@ -497,11 +497,8 @@ _PUBLIC_ WERROR reg_open_remote(struct registry_context **ctx,
 
 	status = dcerpc_pipe_connect(rctx /* TALLOC_CTX */,
 				     &p, location,
-					 &ndr_table_winreg,
+				     &ndr_table_winreg,
 				     credentials, ev, lp_ctx);
-	rctx->pipe = p;
-	rctx->binding_handle = p->binding_handle;
-
 	if(NT_STATUS_IS_ERR(status)) {
 		DEBUG(1, ("Unable to open '%s': %s\n", location,
 			nt_errstr(status)));
@@ -510,6 +507,9 @@ _PUBLIC_ WERROR reg_open_remote(struct registry_context **ctx,
 		return ntstatus_to_werror(status);
 	}
 
+	rctx->pipe = p;
+	rctx->binding_handle = p->binding_handle;
+
 	*ctx = (struct registry_context *)rctx;
 	(*ctx)->ops = &reg_backend_rpc;
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list