From 4c68a8cb60eb0a4c05d9ce98963b930a976b55ee Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 19 Dec 2009 20:53:48 +0100 Subject: [PATCH] Do not consider unreachable nodes when trying to determine packet origin. --- src/net_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {