commit | 3e2c3a07389fb4bd1abc2df19a886ec6155afc5f | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Thu Jan 19 13:55:56 2017 -0800 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Thu Jan 19 14:00:47 2017 -0800 |
tree | fe0871f41c2747869d70e3a3bcaf7e241c1fa317 | |
parent | e19643deed3d5b77cda277841ff45ce5d33ca78c [diff] |
security+tests: Fix small bugs with uninitialized and leaked memory Change-Id: I525ac8d284783ffff08e31dc7fe2a892bfc78307
diff --git a/src/security/command-interest-signer.cpp b/src/security/command-interest-signer.cpp index 1dfe1ce..0d2f82f 100644 --- a/src/security/command-interest-signer.cpp +++ b/src/security/command-interest-signer.cpp
@@ -25,6 +25,11 @@ namespace ndn { namespace security { +CommandInterestPreparer::CommandInterestPreparer() + : m_lastUsedTimestamp(0) +{ +} + Name CommandInterestPreparer::prepareCommandInterestName(Name name) {
diff --git a/src/security/command-interest-signer.hpp b/src/security/command-interest-signer.hpp index 7033b3f..6c5e2ce 100644 --- a/src/security/command-interest-signer.hpp +++ b/src/security/command-interest-signer.hpp
@@ -41,6 +41,8 @@ class CommandInterestPreparer : noncopyable { public: + CommandInterestPreparer(); + /** * @brief Prepare name of the CommandInterest *