diff options
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/kcc/kcc_drs_replica_info.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/dsdb/kcc/kcc_drs_replica_info.c b/source4/dsdb/kcc/kcc_drs_replica_info.c index 05c1eb24d8..05f9434949 100644 --- a/source4/dsdb/kcc/kcc_drs_replica_info.c +++ b/source4/dsdb/kcc/kcc_drs_replica_info.c @@ -630,10 +630,11 @@ static WERROR kccdrs_replica_get_info_neighbours(TALLOC_CTX *mem_ctx, /* append the neighbour to the neighbours array */ reply->neighbours->array = talloc_realloc(mem_ctx, - reply->neighbours->array, - struct drsuapi_DsReplicaNeighbour, - reply->neighbours->count + 1); - reply->neighbours->array[reply->neighbours->count++] = neigh; + reply->neighbours->array, + struct drsuapi_DsReplicaNeighbour, + reply->neighbours->count + 1); + reply->neighbours->array[reply->neighbours->count] = neigh; + reply->neighbours->count++; j++; } |