From 8d70553b72e543e833c35173a6e566d1ea0fdccd Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 7 Jun 2016 15:43:13 +1200 Subject: s4-kcc: Fix compiler errors when building with --address-sanitizer Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam --- source4/dsdb/kcc/kcc_topology.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source4/dsdb/kcc') diff --git a/source4/dsdb/kcc/kcc_topology.c b/source4/dsdb/kcc/kcc_topology.c index 82ef665601c..43685ecb8e4 100644 --- a/source4/dsdb/kcc/kcc_topology.c +++ b/source4/dsdb/kcc/kcc_topology.c @@ -2592,11 +2592,12 @@ static NTSTATUS kcctpl_get_spanning_tree_edges(struct kccsrv_service *service, { TALLOC_CTX *tmp_ctx; struct kcctpl_internal_edge_list internal_edges; - uint32_t i, component_count; + uint32_t i, component_count = 0; NTSTATUS status; struct kcctpl_multi_edge_list output_edges, st_edge_list; ZERO_STRUCT(internal_edges); + ZERO_STRUCT(st_edge_list); tmp_ctx = talloc_new(mem_ctx); NT_STATUS_HAVE_NO_MEMORY(tmp_ctx); @@ -3220,13 +3221,15 @@ static NTSTATUS kcctpl_create_connections(struct kccsrv_service *service, TALLOC_CTX *tmp_ctx; struct GUID site_guid; struct kcctpl_vertex *site_vertex; - uint32_t component_count, i; + uint32_t component_count = 0, i; struct kcctpl_multi_edge_list st_edge_list; struct ldb_dn *transports_dn; const char * const attrs[] = { "bridgeheadServerListBL", "name", "transportAddressAttribute", NULL }; int ret; + ZERO_STRUCT(st_edge_list); + connected = true; status = kcctpl_color_vertices(service, graph, cross_ref, detect_failed_dcs, -- cgit v1.2.1