From 7a1e4630977933c025b8d7fae2009b46b9dace71 Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Tue, 27 Jan 2015 21:53:05 +0100 Subject: [PATCH] Bug 2047 - Ipv6EndPointDemux::Lookup may crash --- RELEASE_NOTES | 1 + src/internet/model/ipv6-end-point-demux.cc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/RELEASE_NOTES b/RELEASE_NOTES index d8a8ac8e4..570ddf218 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -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 ------------ diff --git a/src/internet/model/ipv6-end-point-demux.cc b/src/internet/model/ipv6-end-point-demux.cc index 9bd886759..fc75eaf52 100644 --- a/src/internet/model/ipv6-end-point-demux.cc +++ b/src/internet/model/ipv6-end-point-demux.cc @@ -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