From: Guus Sliepen Date: Sat, 19 Dec 2009 19:53:48 +0000 (+0100) Subject: Do not consider unreachable nodes when trying to determine packet origin. X-Git-Tag: release-1.1pre1~88 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=4c68a8cb60eb0a4c05d9ce98963b930a976b55ee;p=tinc Do not consider unreachable nodes when trying to determine packet origin. --- diff --git a/src/net_packet.c b/src/net_packet.c index 64732d08..b50ddc4f 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -515,7 +515,7 @@ static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) { for(node = node_tree->head; node; node = node->next) { n = node->data; - if(n == myself || !digest_active(&n->indigest)) + if(n == myself || !n->status.reachable || !digest_active(&n->indigest)) continue; if(try_mac(n, pkt)) {