Fix attempt to WHOIS self.

This commit is contained in:
Adam Ierymenko 2017-03-17 22:13:34 +00:00
parent a7cb738175
commit cdc0eaec3a
5 changed files with 26 additions and 10 deletions

View file

@ -625,6 +625,13 @@ void Switch::send(Packet &packet,bool encrypt)
void Switch::requestWhois(const Address &addr)
{
#ifdef ZT_TRACE
if (addr == RR->identity.address()) {
fprintf(stderr,"FATAL BUG: Switch::requestWhois() caught attempt to WHOIS self" ZT_EOL_S);
abort();
}
#endif
bool inserted = false;
{
Mutex::Lock _l(_outstandingWhoisRequests_m);