Fix attempt to WHOIS self.
This commit is contained in:
parent
a7cb738175
commit
cdc0eaec3a
5 changed files with 26 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue