if(!c->config_tree) {
init_configuration(&c->config_tree);
- if(!read_host_config(c->config_tree, c->name)) {
+ if(!read_host_config(mesh, c->config_tree, c->name)) {
logger(DEBUG_ALWAYS, LOG_ERR, "Peer %s had unknown identity (%s)", c->hostname, c->name);
return false;
}
- read_ecdsa_public_key(c);
+ read_ecdsa_public_key(mesh, c);
} else {
if(c->protocol_minor && !ecdsa_active(c->ecdsa))
c->protocol_minor = 1;
n->connection->outgoing = NULL;
}
- terminate_connection(n->connection, false);
+ terminate_connection(mesh, n->connection, false);
/* Run graph algorithm to keep things in sync */
graph();
}