Be liberal in accepting KEY_CHANGED/REQ_KEY/ANS_KEY requests.
[tinc] / src / graph.c
index 148f23c..7288f74 100644 (file)
@@ -251,7 +251,7 @@ void sssp_bfs(void) {
                        /* TODO: only clear status.validkey if node is unreachable? */
 
                        n->status.validkey = false;
-                       n->status.waitingforkey = false;
+                       n->last_req_key = 0;
 
                        n->maxmtu = MTU;
                        n->minmtu = 0;
@@ -286,6 +286,9 @@ void sssp_bfs(void) {
                                free(envp[i]);
 
                        subnet_update(n, NULL, n->status.reachable);
+
+                       if(!n->status.reachable)
+                               update_node_udp(n, NULL);
                }
        }
 }