Small string fix.

This commit is contained in:
Adam Ierymenko 2022-10-06 16:53:35 -04:00
parent 2b1ba60f24
commit 86a436e9bf

View File

@ -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);