Validate plan name in dicebet

This commit is contained in:
Jonathan "Duke" Leto
2018-08-26 22:30:28 +02:00
parent 124819cef5
commit 8200435363

View File

@@ -55,6 +55,9 @@ std::string CCerror;
// Private method:
UniValue z_getoperationstatus_IMPL(const UniValue&, bool);
#define PLAN_NAME_MAX 8
#define VALID_PLAN_NAME(x) (strlen(x) <= PLAN_NAME_MAX)
std::string HelpRequiringPassphrase()
{
return pwalletMain && pwalletMain->IsCrypted()