X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fkeys.c;h=5f93a5a976e97bc691818d8848e51c4a575b7a15;hb=4203f7c88d5f17dc10075d371ca97aa6359ba71b;hp=c857fb63503b5cfdf3bdd952b155b47f99417c92;hpb=7208397398f7e08d741bfa83594a88e5d01b6220;p=tinc diff --git a/src/keys.c b/src/keys.c index c857fb63..5f93a5a9 100644 --- a/src/keys.c +++ b/src/keys.c @@ -21,7 +21,7 @@ bool disable_old_keys(const char *filename, const char *what) { return false; } - int result = snprintf(tmpfile, sizeof(tmpfile), "%s.tmp", filename); + size_t result = snprintf(tmpfile, sizeof(tmpfile), "%s.tmp", filename); if(result < sizeof(tmpfile)) { struct stat st = {.st_mode = 0600}; @@ -171,7 +171,7 @@ bool read_ecdsa_public_key(ecdsa_t **ecdsa, splay_tree_t **config_tree, const ch char *p; if(!*config_tree) { - init_configuration(config_tree); + *config_tree = create_configuration(); if(!read_host_config(*config_tree, name, true)) { return false;