Don't try to forward packets to a node we don't have a key for.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 27 Jun 2021 14:19:37 +0000 (16:19 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 27 Jun 2021 14:19:37 +0000 (16:19 +0200)
commit2c9126ab604fce80d9acd1bbdb485eae50aefcad
treed869b3ef3d75b05ff2b61ff406c4ab1581a63fee
parent2a441065a26f9796cdbc6e4ade50409b91d73f7e
Don't try to forward packets to a node we don't have a key for.

If we got a packet that's meant to be relayed, don't call
sptps_send_data() if we don't have a valid key yet for the desination
node, but do keep trying to get a working connection to that node. Based
on a patch from thorkill.
src/net_packet.c