summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/dsdb/repl/drepl_service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/repl/drepl_service.c b/source4/dsdb/repl/drepl_service.c
index 658d597c5d..f4364afeeb 100644
--- a/source4/dsdb/repl/drepl_service.c
+++ b/source4/dsdb/repl/drepl_service.c
@@ -145,7 +145,7 @@ static void _drepl_replica_sync_done_cb(struct dreplsrv_service *service,
struct drsuapi_DsReplicaSync *r = data->r;
/* store last bad result */
- if (W_ERROR_IS_OK(werr)) {
+ if (!W_ERROR_IS_OK(werr)) {
data->werr_last_failure = werr;
}