Skip to content
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

Merged
merged 2 commits into from
Nov 1, 2018

Conversation

cogutvalera
Copy link
Member

@cogutvalera cogutvalera commented Oct 30, 2018

Check if exists regex expression, this PR is for bitshares/bitshares-core#1171 issue

@cogutvalera
Copy link
Member Author

after merging this #82 PR and without merging PR bitshares/bitshares-core#1382 there will be SEGFAULT when starting cli_wallet, this PR fixes it.

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()))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok sure ! Thanks !

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link

@pmconrad pmconrad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pmconrad pmconrad merged commit 9fa03c6 into bitshares:master Nov 1, 2018
@cogutvalera
Copy link
Member Author

Thanks !

cogutvalera added a commit to cogutvalera/bitshares-fc that referenced this pull request Nov 18, 2018
While issue bitshares/bitshares-core#1171 is hold on and open we need to revert these both PRs to avoid compilation errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants