summaryrefslogtreecommitdiff
path: root/node/OutboundMulticast.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-06-17 15:50:05 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-06-17 15:50:05 -0700
commitb041de831a6d6a68c138cb97b0ad7549712d9516 (patch)
treec2d22b9821e0dda65e979f964ef1c65e944df1e4 /node/OutboundMulticast.cpp
parentc5a07c7f20dc54d88a2f6b8b5c4462510b042325 (diff)
downloadinfinitytier-b041de831a6d6a68c138cb97b0ad7549712d9516.tar.gz
infinitytier-b041de831a6d6a68c138cb97b0ad7549712d9516.zip
More stack->heap
Diffstat (limited to 'node/OutboundMulticast.cpp')
-rw-r--r--node/OutboundMulticast.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/OutboundMulticast.cpp b/node/OutboundMulticast.cpp
index dc513e84..5b5b726b 100644
--- a/node/OutboundMulticast.cpp
+++ b/node/OutboundMulticast.cpp
@@ -91,8 +91,8 @@ void OutboundMulticast::sendOnly(const RuntimeEnvironment *RR,void *tPtr,const A
_packet.setDestination(toAddr2);
RR->node->expectReplyTo(_packet.packetId());
- Packet tmp(_packet); // make a copy of packet so as not to garble the original -- GitHub issue #461
- RR->sw->send(tPtr,tmp,true);
+ _tmp = _packet;
+ RR->sw->send(tPtr,_tmp,true);
}
}