diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index a95ff2f..f3ff507 100644 --- a/src/rpc/cli.cpp +++ b/src/rpc/cli.cpp @@ -210,7 +210,7 @@ static int cli_completion(char *token, char ***array) */ static int cli_check_secret(const char *source) { - if (boost::regex_match(source, cli_regex_secret())) + if (nullptr != cli_regex_secret().expression() && boost::regex_match(source, cli_regex_secret())) return 1; return 0;