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

@ -97,6 +97,7 @@ void Switch::onRemotePacket(const InetAddress &localAddr,const InetAddress &from
_lastBeaconResponse = now;
Packet outp(peer->address(),RR->identity.address(),Packet::VERB_NOP);
outp.armor(peer->key(),true);
RR->antiRec->logOutgoingZT(outp.data(),outp.size());
RR->node->putPacket(localAddr,fromAddr,outp.data(),outp.size());
}
}