Fixed a segfault when all nodes available for autoconnect has been exhausted
In cases when tinc has all available nodes in outgoing connections and can not establish those connection due to network outage periodic_handler() would crash since tmp_node_tree->count is 0. This commit adds also new flag node->status.has_cfg_address to prevent update_udp_address() from removing this flag. Fixed node_status_t->unused - 13 + 19 = 32
This commit is contained in:
parent
f12d4a3e6d
commit
618ddadeab
3 changed files with 21 additions and 15 deletions
|
|
@ -394,8 +394,10 @@ void load_all_nodes(void) {
|
|||
}
|
||||
}
|
||||
|
||||
if (lookup_config(config_tree, "Address"))
|
||||
if (lookup_config(config_tree, "Address")) {
|
||||
n->status.has_known_address = true;
|
||||
n->status.has_cfg_address = true;
|
||||
}
|
||||
|
||||
exit_configuration(&config_tree);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue