diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-05-16 13:06:53 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-05-16 13:06:56 +0200 |
commit | 82b551fad6712461bfaaa67ade44aa6091c9cf80 (patch) | |
tree | ea22de19cbd03e8e8a1f66dc1a5d73bc0a1d6a69 | |
parent | 306579df31826dcb934dea6eabb88a856a707f76 (diff) |
Fix info hash not hashing input
-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); } } |