diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-08-05 00:19:22 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-08-05 00:19:45 +0000 |
commit | c5e2aee961bbf2cc8aa6dc395888ef25727a5723 (patch) | |
tree | 2c9234470b1f7700353f455de0675ec34778f9b5 /src | |
parent | Merge pull request #4129 (diff) | |
download | monero-c5e2aee961bbf2cc8aa6dc395888ef25727a5723.tar.xz |
updates: fix hash sanity checking
Diffstat (limited to 'src')
-rw-r--r-- | src/common/updates.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/updates.cpp b/src/common/updates.cpp index 9eb402e0b..9f12f8dbc 100644 --- a/src/common/updates.cpp +++ b/src/common/updates.cpp @@ -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; } |