mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 21:33:57 -07:00
Various other fixes including removal of more mem*() issues and netlink fixes for AARCH64.
This commit is contained in:
parent
d5ac8512e3
commit
d81549a7b1
5 changed files with 74 additions and 59 deletions
|
@ -79,6 +79,8 @@ public:
|
|||
_maxCustodyChainLength(0),
|
||||
_ruleCount(0)
|
||||
{
|
||||
memset(_rules,0,sizeof(_rules));
|
||||
memset(_custody,0,sizeof(_custody));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -200,10 +200,11 @@ bool NetworkConfig::toDictionary(Dictionary<ZT_NETWORKCONFIG_DICT_CAPACITY> &d,b
|
|||
|
||||
bool NetworkConfig::fromDictionary(const Dictionary<ZT_NETWORKCONFIG_DICT_CAPACITY> &d)
|
||||
{
|
||||
static const NetworkConfig NIL_NC;
|
||||
Buffer<ZT_NETWORKCONFIG_DICT_CAPACITY> *tmp = new Buffer<ZT_NETWORKCONFIG_DICT_CAPACITY>();
|
||||
|
||||
try {
|
||||
*this = NetworkConfig();
|
||||
*this = NIL_NC;
|
||||
|
||||
// Fields that are always present, new or old
|
||||
this->networkId = d.getUI(ZT_NETWORKCONFIG_DICT_KEY_NETWORK_ID,0);
|
||||
|
|
|
@ -89,6 +89,7 @@ public:
|
|||
_issuedTo(issuedTo),
|
||||
_signedBy()
|
||||
{
|
||||
memset(_signature.data,0,sizeof(_signature.data));
|
||||
}
|
||||
|
||||
inline uint32_t id() const { return _id; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue