Bug 1837 - AODV crashes when using multiple interfaces

This commit is contained in:
Tommaso Pecorella
2014-01-14 21:27:14 +01:00
parent 97494a63ff
commit a4f7e7dc47
2 changed files with 2 additions and 2 deletions

View File

@@ -1746,7 +1746,7 @@ RoutingProtocol::SendRerrWhenNoRouteToForward (Ipv4Address dst,
{
destination = iface.GetBroadcast ();
}
socket->SendTo (packet, 0, InetSocketAddress (destination, AODV_PORT));
socket->SendTo (packet->Copy (), 0, InetSocketAddress (destination, AODV_PORT));
}
}
}