Bug 2047 - Ipv6EndPointDemux::Lookup may crash
authorTommaso Pecorella <tommaso.pecorella@unifi.it>
Tue, 27 Jan 2015 21:53:05 +0100
changeset 11165 d390d8eaafe2
parent 11164 dc8d61ed5b73
child 11166 96cef68fae19
Bug 2047 - Ipv6EndPointDemux::Lookup may crash
RELEASE_NOTES
src/internet/model/ipv6-end-point-demux.cc
--- a/RELEASE_NOTES	Mon Jan 26 22:53:31 2015 -0800
+++ b/RELEASE_NOTES	Tue Jan 27 21:53:05 2015 +0100
@@ -58,6 +58,7 @@
 - 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
 ------------
--- a/src/internet/model/ipv6-end-point-demux.cc	Mon Jan 26 22:53:31 2015 -0800
+++ b/src/internet/model/ipv6-end-point-demux.cc	Tue Jan 27 21:53:05 2015 +0100
@@ -197,6 +197,10 @@
 
       if (endP->GetBoundNetDevice ())
         {
+          if (!incomingInterface)
+            {
+              continue;
+            }
           if (endP->GetBoundNetDevice () != incomingInterface->GetDevice ())
             {
               NS_LOG_LOGIC ("Skipping endpoint " << &endP