mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	Fix #1257
This commit is contained in:
		
							parent
							
								
									846eac29dc
								
							
						
					
					
						commit
						aa9c1b66a0
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -359,6 +359,20 @@ namespace client
 | 
			
		|||
			}
 | 
			
		||||
			forward = std::make_shared<boost::asio::ip::udp::endpoint>(addr, port);
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		//ensure we actually received a destination
 | 
			
		||||
		if (destination.empty())
 | 
			
		||||
		{
 | 
			
		||||
			SendMessageReply (SAM_SESSION_STATUS_INVALID_KEY, strlen(SAM_SESSION_STATUS_INVALID_KEY), true);
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		//ensure it's a base64 string
 | 
			
		||||
		if (!keys.FromBase64(destination))
 | 
			
		||||
		{
 | 
			
		||||
			SendMessageReply(SAM_SESSION_STATUS_INVALID_KEY, strlen(SAM_SESSION_STATUS_INVALID_KEY), true);
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// create destination
 | 
			
		||||
		auto session = m_Owner.CreateSession (id, destination == SAM_VALUE_TRANSIENT ? "" : destination, ¶ms);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue