s4-kcc: correctly populate the neighbor object when taking information from repsTo
authorMatthieu Patou <mat@matws.net>
Sat, 30 Jul 2011 07:05:40 +0000 (11:05 +0400)
committerMatthieu Patou <mat@samba.org>
Sat, 30 Jul 2011 22:17:17 +0000 (00:17 +0200)
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Jul 31 00:17:17 CEST 2011 on sn-devel-104

source4/dsdb/kcc/kcc_drs_replica_info.c

index 2629114afc123ff55388a9a1dd8de440aefce635..536684fff1b808b0fbac6d1d67f2033f591c94ff 100644 (file)
@@ -675,6 +675,9 @@ static WERROR fill_neighbor_from_repsTo(TALLOC_CTX *mem_ctx,
                return WERR_DS_DRA_INTERNAL_ERROR;
        }
 
+       neigh->last_success = reps_to->last_success;
+       neigh->result_last_attempt = reps_to->result_last_attempt;
+       neigh->consecutive_sync_failures = reps_to->consecutive_sync_failures;
        return WERR_OK;
 }