diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-17 22:13:34 +0000 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-17 22:13:34 +0000 |
| commit | cdc0eaec3add50e1424a0bcd9d054ec140c3540b (patch) | |
| tree | 8a3e011be0855b2f3e34df6b6d583e41f0f822c4 /node/Switch.cpp | |
| parent | a7cb738175cde9ba85143ae7076ba6b18bcc1c5b (diff) | |
| download | infinitytier-cdc0eaec3add50e1424a0bcd9d054ec140c3540b.tar.gz infinitytier-cdc0eaec3add50e1424a0bcd9d054ec140c3540b.zip | |
Fix attempt to WHOIS self.
Diffstat (limited to 'node/Switch.cpp')
| -rw-r--r-- | node/Switch.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp index 85103aa5..aab2e7ff 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -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); |
