]> tinc-vpn.org Git - tinc/blobdiff - src/address_cache.c
Replace pointers to global splay trees with structs.
[tinc] / src / address_cache.c
index df465da3a00df076a352433392b95f823e93687a..e17f896487a2ae8aa0e60cd786d1a7f4851ac971 100644 (file)
@@ -147,7 +147,7 @@ const sockaddr_t *get_recent_address(address_cache_t *cache) {
 
        // Otherwise, check if there are any known Address statements
        if(!cache->config_tree) {
-               init_configuration(&cache->config_tree);
+               cache->config_tree = create_configuration();
                read_host_config(cache->config_tree, cache->node->name, false);
                cache->cfg = lookup_config(cache->config_tree, "Address");
        }