mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-10 19:38:28 +01:00
Use IDENTITY_HASH_SIZE constant in NetDb::HandleDatabaseLookupMsg().
This commit is contained in:
parent
cbec85a21b
commit
c1ede68a33
1 changed files with 2 additions and 2 deletions
|
@ -955,9 +955,9 @@ namespace data
|
||||||
// try responses
|
// try responses
|
||||||
for (int i = 0; i < num; i++)
|
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];
|
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;
|
peerHash[l1] = 0;
|
||||||
LogPrint (eLogDebug, "NetDb: ", i, ": ", peerHash);
|
LogPrint (eLogDebug, "NetDb: ", i, ": ", peerHash);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue