mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
revert
This commit is contained in:
parent
82a4630061
commit
008a064764
1 changed files with 3 additions and 3 deletions
|
@ -538,7 +538,7 @@ namespace garlic
|
||||||
{
|
{
|
||||||
case eGarlicDeliveryTypeLocal:
|
case eGarlicDeliveryTypeLocal:
|
||||||
LogPrint (eLogDebug, "Garlic: type local");
|
LogPrint (eLogDebug, "Garlic: type local");
|
||||||
if (offset > (int)len || offset <= 0)
|
if (offset > (int)len)
|
||||||
{
|
{
|
||||||
LogPrint (eLogError, "Garlic: message is too short");
|
LogPrint (eLogError, "Garlic: message is too short");
|
||||||
break;
|
break;
|
||||||
|
@ -594,7 +594,7 @@ namespace garlic
|
||||||
offset = buf - buf1;
|
offset = buf - buf1;
|
||||||
if (!from) // received directly
|
if (!from) // received directly
|
||||||
{
|
{
|
||||||
if (offset > (int)len || offset <= 0)
|
if (offset > (int)len)
|
||||||
{
|
{
|
||||||
LogPrint (eLogError, "Garlic: message is too short");
|
LogPrint (eLogError, "Garlic: message is too short");
|
||||||
break;
|
break;
|
||||||
|
@ -609,7 +609,7 @@ namespace garlic
|
||||||
default:
|
default:
|
||||||
LogPrint (eLogWarning, "Garlic: unknown delivery type ", (int)deliveryType);
|
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");
|
LogPrint (eLogError, "Garlic: message is too short");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue