projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix two warnings from Clang's static analyzer.
[tinc]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
601a325
..
421315b
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-633,6
+633,8
@@
bool setup_myself_reloadable(void) {
keylifetime = 3600;
get_config_int(lookup_config(config_tree, "AutoConnect"), &autoconnect);
+ if(autoconnect < 0)
+ autoconnect = 0;
get_config_bool(lookup_config(config_tree, "DisableBuggyPeers"), &disablebuggypeers);