wallet: fix --generate-from-json using wrong password

This commit is contained in:
moneromooo-monero 2018-10-01 11:18:50 +00:00
parent 83d8f03c23
commit 25e5890d37
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
6 changed files with 20 additions and 7 deletions

View file

@ -3352,7 +3352,8 @@ public:
{
try
{
wal = tools::wallet2::make_from_json(vm, true, from_json, password_prompt);
auto rc = tools::wallet2::make_from_json(vm, true, from_json, password_prompt);
wal = std::move(rc.first);
}
catch (const std::exception &e)
{