Browse Source

don't reply to lookup with expired LeaseSet

pull/378/head
orignal 9 years ago
parent
commit
ee8ab58d64
  1. 2
      NetDb.cpp

2
NetDb.cpp

@ -690,7 +690,7 @@ namespace data @@ -690,7 +690,7 @@ namespace data
lookupType == DATABASE_LOOKUP_TYPE_NORMAL_LOOKUP))
{
auto leaseSet = FindLeaseSet (ident);
if (leaseSet) // we don't send back our LeaseSets
if (leaseSet && !leaseSet->IsExpired ()) // we don't send back our LeaseSets
{
LogPrint (eLogDebug, "NetDb: requested LeaseSet ", key, " found");
replyMsg = CreateDatabaseStoreMsg (leaseSet);

Loading…
Cancel
Save