mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Windows crash fix.
This commit is contained in:
parent
76108671f6
commit
8542ee59db
1 changed files with 2 additions and 2 deletions
|
@ -988,7 +988,7 @@ public:
|
||||||
std::map<uint64_t,NetworkState>::const_iterator n(_nets.find(nwid));
|
std::map<uint64_t,NetworkState>::const_iterator n(_nets.find(nwid));
|
||||||
if (n == _nets.end())
|
if (n == _nets.end())
|
||||||
return false;
|
return false;
|
||||||
memcpy(&settings,&(n->second.settings),sizeof(NetworkSettings));
|
settings = n->second.settings;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -999,7 +999,7 @@ public:
|
||||||
std::map<uint64_t,NetworkState>::iterator n(_nets.find(nwid));
|
std::map<uint64_t,NetworkState>::iterator n(_nets.find(nwid));
|
||||||
if (n == _nets.end())
|
if (n == _nets.end())
|
||||||
return false;
|
return false;
|
||||||
memcpy(&(n->second.settings),&settings,sizeof(NetworkSettings));
|
n->second.settings = settings;
|
||||||
|
|
||||||
char nlcpath[256];
|
char nlcpath[256];
|
||||||
Utils::snprintf(nlcpath,sizeof(nlcpath),"%s" ZT_PATH_SEPARATOR_S "networks.d" ZT_PATH_SEPARATOR_S "%.16llx.local.conf",_homePath.c_str(),nwid);
|
Utils::snprintf(nlcpath,sizeof(nlcpath),"%s" ZT_PATH_SEPARATOR_S "networks.d" ZT_PATH_SEPARATOR_S "%.16llx.local.conf",_homePath.c_str(),nwid);
|
||||||
|
|
Loading…
Add table
Reference in a new issue