Don't try to relay packets to unreachable nodes.
authorEtienne Dechamps <etienne@edechamps.fr>
Sun, 31 May 2015 19:19:48 +0000 (20:19 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sun, 31 May 2015 19:19:48 +0000 (20:19 +0100)
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.


No differences found