handle padding properly
This commit is contained in:
		@@ -494,6 +494,8 @@ where
 | 
				
			|||||||
        return Ok((input, None));
 | 
					        return Ok((input, None));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    let (input, _padding) = take(attr_len % 4)(input)?;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let attr = match attr_type {
 | 
					    let attr = match attr_type {
 | 
				
			||||||
        ATTR_MAPPED_ADDRESS => {
 | 
					        ATTR_MAPPED_ADDRESS => {
 | 
				
			||||||
            let (_residual, addr) = parse_stun_address(attr_data)?;
 | 
					            let (_residual, addr) = parse_stun_address(attr_data)?;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user