diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-07-06 10:25:36 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-07-06 10:25:36 -0700 |
commit | 2f20258807f8665bc3f9c527106e61761e01ecc3 (patch) | |
tree | 1be0f5f17cdb4df4486fa53a9f7153c5cfa7da23 /node/Identity.hpp | |
parent | baa10c2995b7e0e49b49fe63a264a20982b817cf (diff) | |
download | infinitytier-2f20258807f8665bc3f9c527106e61761e01ecc3.tar.gz infinitytier-2f20258807f8665bc3f9c527106e61761e01ecc3.zip |
.
Diffstat (limited to 'node/Identity.hpp')
-rw-r--r-- | node/Identity.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/node/Identity.hpp b/node/Identity.hpp index b1c7d6f4..79e17f4d 100644 --- a/node/Identity.hpp +++ b/node/Identity.hpp @@ -91,7 +91,10 @@ public: ~Identity() { - delete _privateKey; + if (_privateKey) { + Utils::burn(_privateKey,sizeof(C25519::Private)); + delete _privateKey; + } } inline Identity &operator=(const Identity &id) |