static void free_known_addresses(struct addrinfo *ai) {
for(struct addrinfo *aip = ai, *next; aip; aip = next) {
next = aip->ai_next;
static void free_known_addresses(struct addrinfo *ai) {
for(struct addrinfo *aip = ai, *next; aip; aip = next) {
next = aip->ai_next;
fwrite(&cache->data, sizeof(cache->data), 1, fp);
fclose(fp);
}
fwrite(&cache->data, sizeof(cache->data), 1, fp);
fclose(fp);
}
// Otherwise, check if there are any known Address statements
if(!cache->config_tree) {
// Otherwise, check if there are any known Address statements
if(!cache->config_tree) {
read_host_config(cache->config_tree, cache->node->name, false);
cache->cfg = lookup_config(cache->config_tree, "Address");
}
read_host_config(cache->config_tree, cache->node->name, false);
cache->cfg = lookup_config(cache->config_tree, "Address");
}