s4/dsdb:kcc: cleanup and improve readability
authorAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Thu, 23 Sep 2010 02:20:21 +0000 (19:20 -0700)
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Thu, 23 Sep 2010 15:41:05 +0000 (08:41 -0700)
source4/dsdb/kcc/kcc_drs_replica_info.c

index 05c1eb24d8aa6324c0b0acbd811cd14e7da47104..05f94349496857acc8c1db1c3088307e2b5add46 100644 (file)
@@ -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++;
                                }