mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
More stack->heap
This commit is contained in:
parent
c5a07c7f20
commit
b041de831a
2 changed files with 3 additions and 3 deletions
|
@ -91,8 +91,8 @@ void OutboundMulticast::sendOnly(const RuntimeEnvironment *RR,void *tPtr,const A
|
||||||
_packet.setDestination(toAddr2);
|
_packet.setDestination(toAddr2);
|
||||||
RR->node->expectReplyTo(_packet.packetId());
|
RR->node->expectReplyTo(_packet.packetId());
|
||||||
|
|
||||||
Packet tmp(_packet); // make a copy of packet so as not to garble the original -- GitHub issue #461
|
_tmp = _packet;
|
||||||
RR->sw->send(tPtr,tmp,true);
|
RR->sw->send(tPtr,_tmp,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -161,7 +161,7 @@ private:
|
||||||
unsigned int _limit;
|
unsigned int _limit;
|
||||||
unsigned int _frameLen;
|
unsigned int _frameLen;
|
||||||
unsigned int _etherType;
|
unsigned int _etherType;
|
||||||
Packet _packet;
|
Packet _packet,_tmp;
|
||||||
std::vector<Address> _alreadySentTo;
|
std::vector<Address> _alreadySentTo;
|
||||||
uint8_t _frameData[ZT_MAX_MTU];
|
uint8_t _frameData[ZT_MAX_MTU];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue