mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-08-26 12:51:54 +00:00
set only key correctly
This commit is contained in:
parent
962c2160c7
commit
ff19bab800
@ -572,7 +572,7 @@ namespace client
|
|||||||
uint16_t keyType = bufbe16toh (buf + offset); offset += 2; // encryption type
|
uint16_t keyType = bufbe16toh (buf + offset); offset += 2; // encryption type
|
||||||
uint16_t keyLen = bufbe16toh (buf + offset); offset += 2; // private key length
|
uint16_t keyLen = bufbe16toh (buf + offset); offset += 2; // private key length
|
||||||
if (offset + keyLen > len) return;
|
if (offset + keyLen > len) return;
|
||||||
if (keyType > currentKeyType)
|
if (!currentKey || keyType > currentKeyType)
|
||||||
{
|
{
|
||||||
currentKeyType = keyType;
|
currentKeyType = keyType;
|
||||||
currentKey = buf + offset;
|
currentKey = buf + offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user