]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Stop using global variable mesh in conf.[ch].
[meshlink] / src / protocol_auth.c
index fa71874f3d4e3464dbeb4f0efddb270b98efafb3..7864ee58191b61b3b88804af0fb1b581fd638c8b 100644 (file)
@@ -317,7 +317,7 @@ bool id_h(connection_t *c, const char *request) {
        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;
                }