aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-16 13:06:53 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commit43507b8bef2de14ad8c02fa421d9ced134d768e2 (patch)
treec1c50d3da94bfbf8968f2ef7ed527620ebc99159 /src
parent8efee2b2f230bc3777579f7ac15c745954466d28 (diff)
Fix info hash not hashing input
Diffstat (limited to 'src')
-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);
}
}