]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_key.c
Stop using global variable mesh in conf.[ch].
[meshlink] / src / protocol_key.c
index 887ccd0d9f394ed6a09e8f14a46dbbb9812e1d77..6ffc7ce990a680db5a9fed0e5253ddd4a3724ed5 100644 (file)
@@ -123,7 +123,7 @@ static bool req_key_ext_h(connection_t *c, const char *request, node_t *from, in
                        }
 
                        logger(DEBUG_PROTOCOL, LOG_INFO, "Learned ECDSA public key from %s (%s)", from->name, from->hostname);
-                       append_config_file(from->name, "ECDSAPublicKey", pubkey);
+                       append_config_file(mesh, from->name, "ECDSAPublicKey", pubkey);
                        return true;
                }