diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-16 13:06:53 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:46 +0200 |
commit | 43507b8bef2de14ad8c02fa421d9ced134d768e2 (patch) | |
tree | c1c50d3da94bfbf8968f2ef7ed527620ebc99159 /src | |
parent | 8efee2b2f230bc3777579f7ac15c745954466d28 (diff) |
Fix info hash not hashing input
Diffstat (limited to 'src')
-rw-r--r-- | src/Database.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Database.cpp b/src/Database.cpp index 77c5e14..da89f2f 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -702,6 +702,6 @@ namespace odhtdb dht::InfoHash Database::getInfoHash(const void *data, usize size) { - return dht::InfoHash((const u8*)data, size); + return dht::InfoHash::get((const u8*)data, size); } } |