projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't tarpit localhost connections
[tinc]
/
src
/
fsck.c
diff --git
a/src/fsck.c
b/src/fsck.c
index
70ca84d
..
b44b775
100644
(file)
--- a/
src/fsck.c
+++ b/
src/fsck.c
@@
-142,6
+142,11
@@
static void check_conffile(const char *nodename, bool server) {
++total_vars;
}
++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);
const size_t countlen = total_vars * sizeof(int);
int *count = alloca(countlen);
memset(count, 0, countlen);