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

View file

@ -619,7 +619,7 @@ namespace garlic
buf += 8; // Date buf += 8; // Date
buf += 3; // Certificate buf += 3; // Certificate
offset = buf1 - buf; offset = buf1 - buf;
if (offset > (int)len || offset <= 0) if (offset > (int)len)
{ {
LogPrint (eLogError, "Garlic: clove is too long"); LogPrint (eLogError, "Garlic: clove is too long");
break; break;