From 82b551fad6712461bfaaa67ade44aa6091c9cf80 Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> 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(-) (limited to 'src') 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