Merge pull request #4224

c5e2aee updates: fix hash sanity checking (moneromooo-monero)
This commit is contained in:
luigi1111 2018-08-22 20:51:32 -05:00
commit 4e6187faf3
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -69,12 +69,12 @@ namespace tools
continue;
bool alnum = true;
for (auto c: hash)
for (auto c: fields[3])
if (!isalnum(c))
alnum = false;
if (hash.size() != 64 && !alnum)
if (fields[3].size() != 64 && !alnum)
{
MWARNING("Invalid hash: " << hash);
MWARNING("Invalid hash: " << fields[3]);
continue;
}