diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-08-22 20:51:32 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-08-22 20:51:32 -0500 |
commit | 4e6187faf36c6ffd2ccb89e822c16a34e46e76a9 (patch) | |
tree | 65d688856101ee2d5831a36d89a992016c5d4e19 | |
parent | Merge pull request #4215 (diff) | |
parent | updates: fix hash sanity checking (diff) | |
download | monero-4e6187faf36c6ffd2ccb89e822c16a34e46e76a9.tar.xz |
Merge pull request #4224
c5e2aee updates: fix hash sanity checking (moneromooo-monero)
-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; } |