X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fautoconnect.c;h=4279cd37e1acd769a6284e218af6fce2fa1bb5fa;hb=b322126576c52ffbc9a91d818125fc461fa17d1b;hp=a5f433cf1b79323e19d8c0632a7ad88d45cd5c35;hpb=3a149f7521dfff67e6a790c1a830afc649ae083e;p=tinc diff --git a/src/autoconnect.c b/src/autoconnect.c index a5f433cf..4279cd37 100644 --- a/src/autoconnect.c +++ b/src/autoconnect.c @@ -114,7 +114,7 @@ static void drop_superfluous_outgoing_connection() { int count = 0; for list_each(connection_t, c, &connection_list) { - if(!c->edge || !c->outgoing || !c->node || c->node->edge_tree->count < 2) { + if(!c->edge || !c->outgoing || !c->node || c->node->edge_tree.count < 2) { continue; } @@ -128,7 +128,7 @@ static void drop_superfluous_outgoing_connection() { int r = rand() % count; for list_each(connection_t, c, &connection_list) { - if(!c->edge || !c->outgoing || !c->node || c->node->edge_tree->count < 2) { + if(!c->edge || !c->outgoing || !c->node || c->node->edge_tree.count < 2) { continue; }