From 43507b8bef2de14ad8c02fa421d9ced134d768e2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 16 May 2018 13:06:53 +0200 Subject: Fix info hash not hashing input --- src/Database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3