diff options
author | Anatoliy Atanasov <anatoliy.atanasov@postpath.com> | 2010-09-22 19:20:21 -0700 |
---|---|---|
committer | Anatoliy Atanasov <anatoliy.atanasov@postpath.com> | 2010-09-23 08:41:05 -0700 |
commit | 67b6252eedbde910da4effb3c3f62af449e3503a (patch) | |
tree | 832968c89742001e1d557057d683bb07404d410c /source4/dsdb/kcc | |
parent | 519180c341edd1be51fbbb622132c2f5d9a37731 (diff) | |
download | samba-67b6252eedbde910da4effb3c3f62af449e3503a.tar.gz samba-67b6252eedbde910da4effb3c3f62af449e3503a.tar.xz samba-67b6252eedbde910da4effb3c3f62af449e3503a.zip |
s4/dsdb:kcc: cleanup and improve readability
Diffstat (limited to 'source4/dsdb/kcc')
-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 05c1eb24d8a..05f94349496 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++; } |