const bool IntroductionPuzzleInserter::StartInsert(const long &localidentityid)\r
{\r
Poco::DateTime now;\r
- std::string idstring;\r
+ std::string idstring="";\r
long index=0;\r
- std::string indexstr;\r
+ std::string indexstr="";\r
Poco::UUIDGenerator uuidgen;\r
Poco::UUID uuid;\r
- std::string messagebase;\r
+ std::string messagebase="";\r
IntroductionPuzzleXML xml;\r
- std::string encodedpuzzle;\r
- std::string solutionstring;\r
+ std::string encodedpuzzle="";\r
+ std::string solutionstring="";\r
FCPMessage message;\r
- std::string xmldata;\r
- std::string xmldatasizestr;\r
+ std::string xmldata="";\r
+ std::string xmldatasizestr="";\r
std::string privatekey="";\r
std::string publickey="";\r
std::string keypart="";\r
Option::Instance()->Get("MessageBase",messagebase);\r
\r
GenerateCaptcha(encodedpuzzle,solutionstring);\r
+ if(encodedpuzzle.size()==0)\r
+ {\r
+ m_log->fatal("IntroductionPuzzleInserter::StartInsert could not create introduction puzzle");\r
+ return false;\r
+ }\r
\r
try\r
{\r