updates: fix hash sanity checking

This commit is contained in:
moneromooo-monero 2018-08-05 00:19:22 +00:00
parent 0dddfeacc9
commit c5e2aee961
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

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;
}