mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-24 04:37:37 +01:00
fix offset
This commit is contained in:
parent
4ec7425638
commit
ed960eacc2
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,7 @@ namespace garlic
|
|||
uint8_t * gwHash = buf;
|
||||
buf += 32;
|
||||
offset = buf1 - buf;
|
||||
if (offset + 4 > (int)len || offset <= 0)
|
||||
if (offset + 4 > (int)len || offset < 4)
|
||||
{
|
||||
LogPrint (eLogError, "Garlic: message is too short");
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue