From c1ede68a337640fc9b7a6c620745fb05d33e0936 Mon Sep 17 00:00:00 2001 From: Chad Fraleigh Date: Wed, 5 Jul 2023 15:49:10 -0700 Subject: [PATCH] Use IDENTITY_HASH_SIZE constant in NetDb::HandleDatabaseLookupMsg(). --- libi2pd/NetDb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libi2pd/NetDb.cpp b/libi2pd/NetDb.cpp index baf96f74..ca048bec 100644 --- a/libi2pd/NetDb.cpp +++ b/libi2pd/NetDb.cpp @@ -955,9 +955,9 @@ namespace data // try responses for (int i = 0; i < num; i++) { - const uint8_t * router = buf + 33 + i*32; + const uint8_t * router = buf + 33 + i*IDENTITY_HASH_SIZE; char peerHash[48]; - int l1 = i2p::data::ByteStreamToBase64 (router, 32, peerHash, 48); + int l1 = i2p::data::ByteStreamToBase64 (router, IDENTITY_HASH_SIZE, peerHash, 48); peerHash[l1] = 0; LogPrint (eLogDebug, "NetDb: ", i, ": ", peerHash);