[SCM] Samba Shared Repository - branch master updated

Stefan Metzmacher metze at samba.org
Thu Mar 11 07:14:15 MST 2010


The branch, master has been updated
       via  0d6c19b... RPC-DSSYNC: handle DCERPC_FAULT_OP_RNG_ERROR as not supported for DsGetNT4ChangeLog()
       via  4585ea0... s4:torture/libnet/libnet_user.c: fix double free in error path
      from  10b97ed... s4-registry: add all winreg types to reg_value_types table.

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


- Log -----------------------------------------------------------------
commit 0d6c19b976c45eaf801fb28b89db25ddb29d5826
Author: Stefan Metzmacher <metze at samba.org>
Date:   Thu Mar 11 15:11:29 2010 +0100

    RPC-DSSYNC: handle DCERPC_FAULT_OP_RNG_ERROR as not supported for DsGetNT4ChangeLog()
    
    metze

commit 4585ea06a565920ac109cf1b3890e48a3d975093
Author: Stefan Metzmacher <metze at samba.org>
Date:   Thu Mar 11 14:52:37 2010 +0100

    s4:torture/libnet/libnet_user.c: fix double free in error path
    
    metze

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

Summary of changes:
 source4/torture/libnet/libnet_user.c |    1 -
 source4/torture/rpc/dssync.c         |    6 +++++-
 2 files changed, 5 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/libnet/libnet_user.c b/source4/torture/libnet/libnet_user.c
index 3bb962c..02ae2a1 100644
--- a/source4/torture/libnet/libnet_user.c
+++ b/source4/torture/libnet/libnet_user.c
@@ -654,7 +654,6 @@ bool torture_userinfo_api(struct torture_context *torture)
 	if (!NT_STATUS_IS_OK(status)) {
 		printf("libnet_UserInfo call failed: %s\n", nt_errstr(status));
 		ret = false;
-		talloc_free(mem_ctx);
 		goto done;
 	}
 
diff --git a/source4/torture/rpc/dssync.c b/source4/torture/rpc/dssync.c
index aeb4f2a..3918bdd 100644
--- a/source4/torture/rpc/dssync.c
+++ b/source4/torture/rpc/dssync.c
@@ -1022,7 +1022,11 @@ static bool test_FetchNT4Data(struct torture_context *tctx,
 		} else if (!NT_STATUS_IS_OK(status)) {
 			const char *errstr = nt_errstr(status);
 			if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
-				errstr = dcerpc_errstr(ctx, ctx->new_dc.drsuapi.drs_pipe->last_fault_code);
+				struct dcerpc_pipe *p = ctx->new_dc.drsuapi.drs_pipe;
+				if (p->last_fault_code == DCERPC_FAULT_OP_RNG_ERROR) {
+					torture_skip(tctx, "DsGetNT4ChangeLog not supported by target server");
+				}
+				errstr = dcerpc_errstr(ctx, p->last_fault_code);
 			}
 			torture_fail(tctx,
 				     talloc_asprintf(tctx, "dcerpc_drsuapi_DsGetNT4ChangeLog failed - %s\n",


-- 
Samba Shared Repository


More information about the samba-cvs mailing list