fix offset

This commit is contained in:
Jeff Becker 2018-01-03 10:15:17 -05:00
parent 4ec7425638
commit ed960eacc2
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -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;