Bug 1837 - AODV crashes when using multiple interfaces
authorTommaso Pecorella <tommaso.pecorella@unifi.it>
Tue, 14 Jan 2014 21:27:14 +0100
changeset 10572 1aa2cad49e4b
parent 10571 edeab597520c
child 10573 76578cdc4176
Bug 1837 - AODV crashes when using multiple interfaces
RELEASE_NOTES
src/aodv/model/aodv-routing-protocol.cc
--- a/RELEASE_NOTES	Tue Jan 14 06:59:59 2014 -0800
+++ b/RELEASE_NOTES	Tue Jan 14 21:27:14 2014 +0100
@@ -31,7 +31,7 @@
 ----------
 - Bug 1786 - os << int64x64_t prints un-normalized fractional values
 - Bug 1821 - Setting an interface to Down state will cause various asserts in IPv6
-
+- Bug 1837 - AODV crashes when using multiple interfaces
 
 Release 3.19
 =============
--- a/src/aodv/model/aodv-routing-protocol.cc	Tue Jan 14 06:59:59 2014 -0800
+++ b/src/aodv/model/aodv-routing-protocol.cc	Tue Jan 14 21:27:14 2014 +0100
@@ -1746,7 +1746,7 @@
             { 
               destination = iface.GetBroadcast ();
             }
-          socket->SendTo (packet, 0, InetSocketAddress (destination, AODV_PORT));
+          socket->SendTo (packet->Copy (), 0, InetSocketAddress (destination, AODV_PORT));
         }
     }
 }