Invert skipPacket condition so code matches
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
		
							parent
							
								
									96553f4217
								
							
						
					
					
						commit
						5f681022c9
					
				
							
								
								
									
										5
									
								
								wintun.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								wintun.c
									
									
									
									
									
								
							@ -242,8 +242,9 @@ TunSendNetBufferLists(
 | 
			
		||||
        {
 | 
			
		||||
            PacketsCount++;
 | 
			
		||||
            UINT PacketSize = NET_BUFFER_DATA_LENGTH(Nb);
 | 
			
		||||
            if (PacketSize <= TUN_MAX_IP_PACKET_SIZE)
 | 
			
		||||
                RequiredRingSpace += TUN_ALIGN(sizeof(TUN_PACKET) + PacketSize);
 | 
			
		||||
            if (PacketSize > TUN_MAX_IP_PACKET_SIZE)
 | 
			
		||||
                continue; /* The same condition holds down below, where we `goto skipPacket`. */
 | 
			
		||||
            RequiredRingSpace += TUN_ALIGN(sizeof(TUN_PACKET) + PacketSize);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user