]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11384: stun: fix for when parsing incoming packets that contain attributes with...
authorDragos Oancea <dragos.oancea@vonage.com>
Fri, 7 Sep 2018 14:59:17 +0000 (15:59 +0100)
committerDragos Oancea <dragos.oancea@vonage.com>
Fri, 7 Sep 2018 14:59:17 +0000 (15:59 +0100)
src/switch_stun.c

index 6573d3eceb186a8d140c93e825b8d5f12b766a85..a797ebfefe08a8d21f63ba85be055cedecee5fd3 100644 (file)
@@ -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);