X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconf.c;fp=src%2Fconf.c;h=9a1387126e8263d29b42bb0605be746718133bb4;hb=fe5563f92021618b4a8b41e412c73d8364fcaf6e;hp=7f92048ce30603245946a047a264172861a2e304;hpb=6c897377f68fc23ca9a8b23a6ca204517998b2e9;p=meshlink diff --git a/src/conf.c b/src/conf.c index 7f92048c..9a138712 100644 --- a/src/conf.c +++ b/src/conf.c @@ -444,8 +444,9 @@ bool meshlink_confbase_exists(meshlink_handle_t *mesh) { // Cleanup if current is existing with old and new if(confbase_exists && confbase_decryptable) { - config_destroy(mesh->confbase, "old"); - config_destroy(mesh->confbase, "new"); + if(!config_destroy(mesh->confbase, "old") || !config_destroy(mesh->confbase, "new")) { + return false; + } } return confbase_exists;