X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_key.c;h=a957780b3633dfbef6d51748745dad8795520298;hb=0891154941b4f638b8a974ad5085e130a451ceec;hp=29fe509081812799ba70cf96bae0b107a3318d97;hpb=2c6b2d70e6640f39563ad7bb0aa0ba87f883848c;p=tinc diff --git a/src/protocol_key.c b/src/protocol_key.c index 29fe5090..a957780b 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -39,7 +39,7 @@ void send_key_changed(void) { /* Immediately send new keys to directly connected nodes to keep UDP mappings alive */ - for list_each(connection_t, c, connection_list) { + for list_each(connection_t, c, &connection_list) { if(c->edge && c->node && c->node->status.reachable && !c->node->status.sptps) { send_ans_key(c->node); } @@ -50,7 +50,7 @@ void send_key_changed(void) { /* Force key exchange for connections using SPTPS */ if(experimental) { - for splay_each(node_t, n, node_tree) { + for splay_each(node_t, n, &node_tree) { if(n->status.reachable && n->status.validkey && n->status.sptps) { sptps_force_kex(&n->sptps); }