Merge pull request #1582 in FS/freeswitch from ~DRAGOS_OANCEA_NX/freeswitch-dragos-nx:fix/FS-11384/stun_attrs_no_val to master

* commit '164b41d8bd6526da69c99f9bb22ddc1f1f33729b':
  FS-11384: stun: fix for when parsing incoming packets that contain attributes with no value (like USE_CANDIDATE)
This commit is contained in:
Mike Jerris 2019-02-07 21:40:54 +00:00
commit ac6305040a
1 changed files with 0 additions and 2 deletions

View 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);