]> www.tinc-vpn.org Git - tinc/blobdiff - src/fsck.c
GitHub CI: update list of container images
[tinc] / src / fsck.c
index 70ca84d694a7b8f43519e3c7e1b9d50367f60bc0..b44b7759584aa4a4bba930b613ef0d2597453aed 100644 (file)
@@ -142,6 +142,11 @@ static void check_conffile(const char *nodename, bool server) {
                ++total_vars;
        }
 
+       if(!total_vars) {
+               splay_empty_tree(&config);
+               return;
+       }
+
        const size_t countlen = total_vars * sizeof(int);
        int *count = alloca(countlen);
        memset(count, 0, countlen);