Close another potential anti-recursion loophole.

This commit is contained in:
Adam Ierymenko 2016-01-06 15:35:27 -08:00
parent 47ce52228b
commit a56fbc1929
3 changed files with 3 additions and 0 deletions

View file

@ -199,6 +199,7 @@ void Peer::received(
// 1.1.1 and newer nodes support ECHO, which is smaller -- but 1.1.0 has a bug so use HELLO there too
Packet outp(_id.address(),RR->identity.address(),Packet::VERB_ECHO);
outp.armor(_key,true);
RR->antiRec->logOutgoingZT(outp.data(),outp.size());
RR->node->putPacket(localAddr,remoteAddr,outp.data(),outp.size());
} else {
sendHELLO(localAddr,remoteAddr,now);