author | Gustavo J. A. M. Carneiro <gjc@inescporto.pt> |
Wed, 16 Apr 2008 18:37:20 +0100 | |
changeset 2918 | 6244ea5e7831 |
parent 2917 | 8ef8431d56d5 |
child 2920 | 67a8290b9336 |
child 2922 | 916de65f67bf |
--- a/src/node/address.cc Wed Apr 16 12:40:46 2008 -0400 +++ b/src/node/address.cc Wed Apr 16 18:37:20 2008 +0100 @@ -111,9 +111,10 @@ bool operator == (const Address &a, const Address &b) { - NS_ASSERT (a.m_type == b.m_type || - a.m_type == 0 || - b.m_type == 0); + if (a.m_type != b.m_type) + { + return false; + } NS_ASSERT (a.GetLength() == b.GetLength()); return memcmp (a.m_data, b.m_data, a.m_len) == 0; }