From f260c2839c73afa9898547398e1911c585904132 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 31 Jul 2013 17:24:59 -0400 Subject: Local service plugin stuff... work in progress. --- node/Identity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/Identity.cpp') 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)) -- cgit v1.2.3