From: Etienne Dechamps Date: Sun, 31 May 2015 19:19:48 +0000 (+0100) Subject: Don't try to relay packets to unreachable nodes. X-Git-Tag: release-1.1pre12~127 X-Git-Url: https://www.tinc-vpn.org/git/browse?a=commitdiff_plain;h=eca357ed916c9782a64a68a2f30b144d84027795;hp=eca357ed916c9782a64a68a2f30b144d84027795;p=tinc Don't try to relay packets to unreachable nodes. It is not unusual for tinc to receive SPTPS packets to be relayed to nodes that just became unreachable, due to state propagation delays in the metagraph. Unfortunately, the current code doesn't handle that situation correctly, and still tries to relay the packet to the unreachable node. This typically ends up segfaulting. This commit fixes the issue by checking for reachability before relaying the packet. ---