-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safer way to handle unlock command of cli_wallet #1171 #86
Conversation
after merging this #82 PR and without merging PR bitshares/bitshares-core#1382 there will be SEGFAULT when starting |
74409f6
to
157273f
Compare
src/rpc/cli.cpp
Outdated
@@ -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())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok sure ! Thanks !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks ! |
While issue bitshares/bitshares-core#1171 is hold on and open we need to revert these both PRs to avoid compilation errors
Check if exists regex expression, this PR is for bitshares/bitshares-core#1171 issue