diff options
| author | Adam Ierymenko <[email protected]> | 2022-10-06 16:53:35 -0400 |
|---|---|---|
| committer | Adam Ierymenko <[email protected]> | 2022-10-06 16:53:35 -0400 |
| commit | 86a436e9bffe3caefe1a1f6d2d59422b6eef7441 (patch) | |
| tree | aa4e33479a14b62dc5db66c6ed4d3538c8c1a900 /node | |
| parent | 2b1ba60f24e59874c2767113e8c4aca028f6388e (diff) | |
Small string fix.
Diffstat (limited to 'node')
| -rw-r--r-- | node/DNS.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/node/DNS.hpp b/node/DNS.hpp index b36d960d..a954a640 100644 --- a/node/DNS.hpp +++ b/node/DNS.hpp @@ -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); |
