mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-31 08:25:38 +00:00
Make _members dynamically allocated due to static array limit on ARM.
This commit is contained in:
parent
69dad37d8f
commit
5e6eae620b
@ -56,7 +56,8 @@ Cluster::Cluster(const RuntimeEnvironment *renv,uint16_t id,DistanceAlgorithm da
|
||||
_y(y),
|
||||
_z(z),
|
||||
_da(da),
|
||||
_id(id)
|
||||
_id(id),
|
||||
_members(new _Member[65536])
|
||||
{
|
||||
uint16_t stmp[ZT_SHA512_DIGEST_LEN / sizeof(uint16_t)];
|
||||
|
||||
@ -76,6 +77,7 @@ Cluster::~Cluster()
|
||||
{
|
||||
Utils::burn(_masterSecret,sizeof(_masterSecret));
|
||||
Utils::burn(_key,sizeof(_key));
|
||||
delete [] _members;
|
||||
}
|
||||
|
||||
void Cluster::handleIncomingStateMessage(const void *msg,unsigned int len)
|
||||
|
@ -303,7 +303,7 @@ private:
|
||||
~_Member() { Utils::burn(key,sizeof(key)); }
|
||||
};
|
||||
|
||||
_Member _members[65536]; // cluster IDs can be from 0 to 65535 (16-bit)
|
||||
_Member *const _members; // cluster IDs can be from 0 to 65535 (16-bit)
|
||||
|
||||
std::vector<uint16_t> _memberIds;
|
||||
Mutex _memberIds_m;
|
||||
|
Loading…
x
Reference in New Issue
Block a user