mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	don't reply to lookup with expired LeaseSet
This commit is contained in:
		
							parent
							
								
									b967acda58
								
							
						
					
					
						commit
						ee8ab58d64
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue