mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	termination might be send for non-established session
This commit is contained in:
		
							parent
							
								
									23e3602ea1
								
							
						
					
					
						commit
						bffeb237de
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1008,7 +1008,6 @@ namespace transport
 | 
			
		|||
 | 
			
		||||
	void NTCP2Session::SendTermination (NTCP2TerminationReason reason)
 | 
			
		||||
	{
 | 
			
		||||
		if (!IsEstablished ()) return;
 | 
			
		||||
		uint8_t payload[12] = { eNTCP2BlkTermination, 0, 9 };
 | 
			
		||||
		htobe64buf (payload + 3, m_ReceiveSequenceNumber);
 | 
			
		||||
		payload[11] = (uint8_t)reason;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue