GitHub issue #461 -- plus a bit of cleanup and optimization

This commit is contained in:
Adam Ierymenko 2017-03-17 17:15:23 -07:00
parent ef46d3c97d
commit e10325e133
6 changed files with 29 additions and 19 deletions

View file

@ -94,7 +94,9 @@ void OutboundMulticast::sendOnly(const RuntimeEnvironment *RR,const Address &toA
_packet.newInitializationVector();
_packet.setDestination(toAddr2);
RR->node->expectReplyTo(_packet.packetId());
RR->sw->send(_packet,true);
Packet tmp(_packet); // make a copy of packet so as not to garble the original -- GitHub issue #461
RR->sw->send(tmp,true);
}
}