Browse Source

Merge pull request #1898 from Vort/reseed_fixes

Reseed fixes
pull/1901/head
orignal 2 years ago committed by GitHub
parent
commit
d6ed9152ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      libi2pd/NetDb.cpp
  2. 2
      libi2pd/Reseed.cpp

4
libi2pd/NetDb.cpp

@ -431,8 +431,8 @@ namespace data @@ -431,8 +431,8 @@ namespace data
}
// try reseeding from floodfill first if specified
std::string riPath;
if(i2p::config::GetOption("reseed.floodfill", riPath))
std::string riPath; i2p::config::GetOption("reseed.floodfill", riPath);
if (!riPath.empty())
{
auto ri = std::make_shared<RouterInfo>(riPath);
if (ri->IsFloodfill())

2
libi2pd/Reseed.cpp

@ -320,7 +320,7 @@ namespace data @@ -320,7 +320,7 @@ namespace data
uint16_t fileNameLength, extraFieldLength;
s.read ((char *)&fileNameLength, 2);
fileNameLength = le16toh (fileNameLength);
if ( fileNameLength > 255 ) {
if ( fileNameLength >= 255 ) {
// too big
LogPrint(eLogError, "Reseed: SU3 fileNameLength too large: ", fileNameLength);
return numFiles;

Loading…
Cancel
Save