Don't unset validkey when receiving SPTPS handshakes over ANS_KEY.
[oweals/tinc.git] / src / graph.c
index 49161c1683754a517625698055b6bd7783ff7674..e570febb81ad97951c0889e39375eec61bac5108 100644 (file)
@@ -149,7 +149,7 @@ static void sssp_bfs(void) {
                        abort();
 
                for splay_each(edge_t, e, n->edge_tree) {       /* "e" is the edge connected to "from" */
-                       if(!e->reverse)
+                       if(!e->reverse || e->to == myself)
                                continue;
 
                        /* Situation: