From 008a0647640acc64a29209b5abb7adad4cdef768 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 26 Feb 2018 08:12:15 -0500 Subject: [PATCH] revert --- libi2pd/Garlic.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libi2pd/Garlic.cpp b/libi2pd/Garlic.cpp index f3e946b6..59089072 100644 --- a/libi2pd/Garlic.cpp +++ b/libi2pd/Garlic.cpp @@ -538,7 +538,7 @@ namespace garlic { case eGarlicDeliveryTypeLocal: LogPrint (eLogDebug, "Garlic: type local"); - if (offset > (int)len || offset <= 0) + if (offset > (int)len) { LogPrint (eLogError, "Garlic: message is too short"); break; @@ -594,7 +594,7 @@ namespace garlic offset = buf - buf1; if (!from) // received directly { - if (offset > (int)len || offset <= 0) + if (offset > (int)len) { LogPrint (eLogError, "Garlic: message is too short"); break; @@ -609,7 +609,7 @@ namespace garlic default: LogPrint (eLogWarning, "Garlic: unknown delivery type ", (int)deliveryType); } - if (offset > (int)len || offset <= 0) + if (offset > (int)len) { LogPrint (eLogError, "Garlic: message is too short"); break;