Bug 2047 - Ipv6EndPointDemux::Lookup may crash

This commit is contained in:
Tommaso Pecorella
2015-01-27 21:53:05 +01:00
parent 13b111e4b2
commit 7a1e463097
2 changed files with 5 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ Bugs fixed
- Bug 2037 - HT capabilities may print bogus chars
- Bug 2038 - Stop method does not stop next wave in WaveformGenerator
- Bug 2045 - Missing NS_OBJECT_ENSURE_REGISTERED in TcpTxBuffer and TcpRxBuffer
- Bug 2047 - Ipv6EndPointDemux::Lookup may crash
Known issues
------------

View File

@@ -197,6 +197,10 @@ Ipv6EndPointDemux::EndPoints Ipv6EndPointDemux::Lookup (Ipv6Address daddr, uint1
if (endP->GetBoundNetDevice ())
{
if (!incomingInterface)
{
continue;
}
if (endP->GetBoundNetDevice () != incomingInterface->GetDevice ())
{
NS_LOG_LOGIC ("Skipping endpoint " << &endP