]> git.meshlink.io Git - meshlink/blobdiff - src/conf.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / src / conf.c
index 7f92048ce30603245946a047a264172861a2e304..9a1387126e8263d29b42bb0605be746718133bb4 100644 (file)
@@ -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;