mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	udp_proxy: don't overwrite delayed packets
This commit is contained in:
		
							parent
							
								
									76fe9e41c1
								
							
						
					
					
						commit
						bf02319b58
					
				@ -365,6 +365,7 @@ int handle_message( const char *way, int dst, int src )
 | 
			
		||||
               strcmp( cur.type, "ChangeCipherSpec" ) == 0 ) ||
 | 
			
		||||
             ( opt.delay != 0 &&
 | 
			
		||||
               strcmp( cur.type, "ApplicationData" ) != 0 &&
 | 
			
		||||
               prev.dst == NULL &&
 | 
			
		||||
               rand() % opt.delay == 0 ) )
 | 
			
		||||
    {
 | 
			
		||||
        memcpy( &prev, &cur, sizeof( packet ) );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user