diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-17 17:15:23 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-17 17:15:23 -0700 |
| commit | e10325e133beb01a2e9d82687eb33fd72f1ac3ab (patch) | |
| tree | 731c3c78c36b2f1263441591f9490476a42f646c /node/OutboundMulticast.cpp | |
| parent | ef46d3c97dd5d63af7b638f6107bb56495bab9a5 (diff) | |
| download | infinitytier-e10325e133beb01a2e9d82687eb33fd72f1ac3ab.tar.gz infinitytier-e10325e133beb01a2e9d82687eb33fd72f1ac3ab.zip | |
GitHub issue #461 -- plus a bit of cleanup and optimization
Diffstat (limited to 'node/OutboundMulticast.cpp')
| -rw-r--r-- | node/OutboundMulticast.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/node/OutboundMulticast.cpp b/node/OutboundMulticast.cpp index 36dc41f4..d4cb87cb 100644 --- a/node/OutboundMulticast.cpp +++ b/node/OutboundMulticast.cpp @@ -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); } } |
