Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
majestrate committed Feb 26, 2018
1 parent 82a4630 commit 008a064
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libi2pd/Garlic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 008a064

Please sign in to comment.