X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=201cac9fe000eef05b17561fd4223ec31805e60b;hb=4b6c01b1d5383b1a7417244a31ad4652aab2d5db;hp=5632c5a216d23c044e07d820da8661fc4b501f8e;hpb=5618834958c3ffd0250d3712174bd20aaac36e95;p=meshlink diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 5632c5a2..201cac9f 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -298,7 +298,7 @@ static void send_everything(meshlink_handle_t *mesh, connection_t *c) { /* Send all known subnets and edges */ for splay_each(node_t, n, mesh->nodes) { - for splay_each(edge_t, e, n->edge_tree) { + for inner_splay_each(edge_t, e, n->edge_tree) { send_add_edge(mesh, c, e, 0); } } @@ -365,6 +365,7 @@ bool ack_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { /* Activate this connection */ c->allow_request = ALL; + c->last_key_renewal = mesh->loop.now.tv_sec; c->status.active = true; logger(mesh, MESHLINK_INFO, "Connection with %s activated", c->name);