AddressSanitizer: Initialize for kcc_topology.c
authorGarming Sam <garming@catalyst.net.nz>
Thu, 21 Jul 2016 22:56:07 +0000 (10:56 +1200)
committerVolker Lendecke <vl@samba.org>
Mon, 25 Jul 2016 11:56:11 +0000 (13:56 +0200)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/dsdb/kcc/kcc_topology.c

index 43685ecb8e4b711f006f160f3830fcdc0400b9e1..cd4dcc554952e66553a55858a64f791fbf71757f 100644 (file)
@@ -496,7 +496,7 @@ static NTSTATUS kcctpl_create_graph(TALLOC_CTX *mem_ctx,
                                    struct GUID_list guids,
                                    struct kcctpl_graph **_graph)
 {
-       struct kcctpl_graph *graph;
+       struct kcctpl_graph *graph = NULL;
        uint32_t i;
 
        graph = talloc_zero(mem_ctx, struct kcctpl_graph);
@@ -3470,7 +3470,7 @@ static NTSTATUS kcctpl_create_intersite_connections(struct kccsrv_service *servi
                struct ldb_message *cross_ref;
                unsigned int cr_enabled;
                int64_t cr_flags;
-               struct kcctpl_graph *graph;
+               struct kcctpl_graph *graph = NULL;
                bool found_failed_dc, connected;
                NTSTATUS status;