More mem*() stuff...

This commit is contained in:
Adam Ierymenko 2019-03-25 12:41:59 -07:00
parent 678116b6d1
commit e1091611da
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ public:
{
unsigned int p = startAt;
memset(this,0,sizeof(CertificateOfOwnership));
*this = CertificateOfOwnership();
_networkId = b.template at<uint64_t>(p); p += 8;
_ts = b.template at<uint64_t>(p); p += 8;

View File

@ -203,7 +203,7 @@ bool NetworkConfig::fromDictionary(const Dictionary<ZT_NETWORKCONFIG_DICT_CAPACI
Buffer<ZT_NETWORKCONFIG_DICT_CAPACITY> *tmp = new Buffer<ZT_NETWORKCONFIG_DICT_CAPACITY>();
try {
memset(this,0,sizeof(NetworkConfig));
*this = NetworkConfig();
// Fields that are always present, new or old
this->networkId = d.getUI(ZT_NETWORKCONFIG_DICT_KEY_NETWORK_ID,0);