mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-17 20:46:54 +02:00
Small string fix.
This commit is contained in:
parent
2b1ba60f24
commit
86a436e9bf
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ public:
|
|||
char *d = (char*)b.data()+p;
|
||||
memset(dns, 0, sizeof(ZT_VirtualNetworkDNS));
|
||||
memcpy(dns->domain, d, 128);
|
||||
dns->domain[127] = 0;
|
||||
p += 128;
|
||||
for (unsigned int j = 0; j < ZT_MAX_DNS_SERVERS; ++j) {
|
||||
p += reinterpret_cast<InetAddress *>(&(dns->server_addr[j]))->deserialize(b, p);
|
||||
|
|
Loading…
Add table
Reference in a new issue