summaryrefslogtreecommitdiff
path: root/node/OutboundMulticast.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-03-17 17:15:23 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-03-17 17:15:23 -0700
commite10325e133beb01a2e9d82687eb33fd72f1ac3ab (patch)
tree731c3c78c36b2f1263441591f9490476a42f646c /node/OutboundMulticast.cpp
parentef46d3c97dd5d63af7b638f6107bb56495bab9a5 (diff)
downloadinfinitytier-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.cpp4
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);
}
}