aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-05-16 13:06:53 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-05-16 13:06:56 +0200
commit82b551fad6712461bfaaa67ade44aa6091c9cf80 (patch)
treeea22de19cbd03e8e8a1f66dc1a5d73bc0a1d6a69
parent306579df31826dcb934dea6eabb88a856a707f76 (diff)
Fix info hash not hashing input
-rw-r--r--src/Database.cpp2
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);
}
}