From 679bbd014e03f60cddbcabfe0c6b5b8bae9fea4c Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 3 Mar 2012 21:20:59 -0800 Subject: s3: don't replace the error message if already defined Autobuild-User: Matthieu Patou Autobuild-Date: Sun Mar 4 10:13:24 CET 2012 on sn-devel-104 --- source3/libnet/libnet_dssync.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source3/libnet') 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; } } -- cgit