summaryrefslogtreecommitdiff
path: root/source4/dsdb/repl
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2011-02-26 23:01:20 +0200
committerKamen Mazdrashki <kamenim@samba.org>2011-02-27 00:23:18 +0200
commit05c90d2fa696517612051a8e7c7dc765723e71f5 (patch)
tree7670f5b2bcc3c89ce7f5eb7c35a3609cea4d6b32 /source4/dsdb/repl
parentd7f47fb87cb06ab9642bd188de435beed539c437 (diff)
downloadsamba-05c90d2fa696517612051a8e7c7dc765723e71f5.tar.gz
samba-05c90d2fa696517612051a8e7c7dc765723e71f5.tar.bz2
samba-05c90d2fa696517612051a8e7c7dc765723e71f5.zip
s4-drepl: Fix replica sync callback to really store last error rather than last success
Diffstat (limited to 'source4/dsdb/repl')
-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;
}