fixed typo

This commit is contained in:
orignal
2026-06-13 16:12:15 -04:00
parent 5b3d7b515b
commit e80aeccdd1
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2022, The PurpleI2P Project
* Copyright (c) 2013-2026, The PurpleI2P Project
*
* This file is part of Purple i2pd project and licensed under BSD3
*
@@ -17,7 +17,7 @@ namespace i2p
{
namespace data
{
const size_t GZIP_CHUNK_SIZE = 16384;
constexpr size_t GZIP_CHUNK_SIZE = 16384;
GzipInflator::GzipInflator (): m_IsDirty (false)
{
@@ -36,7 +36,7 @@ namespace data
if (in[10] == 0x01) // non compressed
{
size_t len = bufle16toh (in + 11);
if (len + 23 < inLen)
if (len + 23 > inLen)
{
LogPrint (eLogError, "Gzip: Incorrect length");
return 0;