src/internet-stack/ipv4-l3-protocol.cc
changeset 4366 1c3138bce75e
parent 4284 2050b1c0efdd
child 4379 44c7757fb216
--- a/src/internet-stack/ipv4-l3-protocol.cc	Fri Apr 17 18:19:03 2009 +0200
+++ b/src/internet-stack/ipv4-l3-protocol.cc	Fri Apr 17 10:15:11 2009 -0700
@@ -150,7 +150,13 @@
 Ipv4L3Protocol::DoDispose (void)
 {
   NS_LOG_FUNCTION (this);
-  for (L4List_t::iterator i = m_protocols.begin(); i != m_protocols.end(); ++i)
+ 
+  for (SocketList::iterator i = m_sockets.begin (); i != m_sockets.end (); ++i)
+    {
+      *i = 0;
+    }
+
+ for (L4List_t::iterator i = m_protocols.begin(); i != m_protocols.end(); ++i)
     {
       *i = 0;
     }