mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 16:58:35 +00:00
FS-11384: stun: fix for when parsing incoming packets that contain attributes with no value (like USE_CANDIDATE)
This commit is contained in:
parent
5f6ca30bb2
commit
164b41d8bd
@ -331,8 +331,6 @@ SWITCH_DECLARE(switch_stun_packet_t *) switch_stun_packet_parse(uint8_t *buf, ui
|
||||
|
||||
bytes_left -= alen; /* attribute value consumed, substract padded length */
|
||||
|
||||
if (alen == 0) break;
|
||||
|
||||
xlen += 4 + alen;
|
||||
|
||||
attr = (switch_stun_packet_attribute_t *) (attr->value + alen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user