handle padding properly

This commit is contained in:
Keenan Tims 2025-02-14 19:05:11 -08:00
parent a66a6a263e
commit 1488dba92d
No known key found for this signature in database
GPG Key ID: B8FDD4AD6B193F06

View File

@ -494,6 +494,8 @@ where
return Ok((input, None));
}
let (input, _padding) = take(attr_len % 4)(input)?;
let attr = match attr_type {
ATTR_MAPPED_ADDRESS => {
let (_residual, addr) = parse_stun_address(attr_data)?;