Browse Source

Small string fix.

Adam Ierymenko 2 years ago
parent
commit
86a436e9bf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      node/DNS.hpp

+ 1 - 0
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);