summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-03-03 21:20:59 -0800
committerMatthieu Patou <mat@samba.org>2012-03-04 10:13:24 +0100
commit679bbd014e03f60cddbcabfe0c6b5b8bae9fea4c (patch)
treeb59e211e5658bed31486266bb6228587a0ba2e79 /source3
parent7916d64bbdbe0d7bc972611dc6d897ddbd746823 (diff)
downloadsamba-679bbd014e03f60cddbcabfe0c6b5b8bae9fea4c.tar.gz
samba-679bbd014e03f60cddbcabfe0c6b5b8bae9fea4c.tar.bz2
samba-679bbd014e03f60cddbcabfe0c6b5b8bae9fea4c.zip
s3: don't replace the error message if already defined
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Mar 4 10:13:24 CET 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_dssync.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/libnet/libnet_dssync.c b/source3/libnet/libnet_dssync.c
index c768226e8b..a8431066ef 100644
--- a/source3/libnet/libnet_dssync.c
+++ b/source3/libnet/libnet_dssync.c
@@ -652,9 +652,11 @@ static NTSTATUS libnet_dssync_process(TALLOC_CTX *mem_ctx,
status = libnet_dssync_getncchanges(mem_ctx, ctx, level, &req,
&pnew_utdv);
if (!NT_STATUS_IS_OK(status)) {
- ctx->error_message = talloc_asprintf(ctx,
- "Failed to call DsGetNCCHanges: %s",
- nt_errstr(status));
+ if (!ctx->error_message) {
+ ctx->error_message = talloc_asprintf(ctx,
+ "Failed to call DsGetNCCHanges: %s",
+ nt_errstr(status));
+ }
goto out;
}
}