diff options
Diffstat (limited to 'node/Identity.cpp')
-rw-r--r-- | node/Identity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Identity.cpp b/node/Identity.cpp index fdfdcd99..e9cbef3d 100644 --- a/node/Identity.cpp +++ b/node/Identity.cpp @@ -123,7 +123,7 @@ bool Identity::fromString(const char *str) std::string b(Utils::unhex(fields[0])); if (b.length() != ZT_ADDRESS_LENGTH) return false; - _address = b.data(); + _address.setTo(b.data(),ZT_ADDRESS_LENGTH); b = Utils::base64Decode(fields[2]); if ((!b.length())||(b.length() > ZT_EC_MAX_BYTES)) |