mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-14 11:06:36 +00:00
Fix segfault in sofia's stun code
This commit is contained in:
parent
492bc6b416
commit
7403db7005
@ -100,7 +100,7 @@ int stun_parse_message(stun_msg_t *msg)
|
|||||||
msg->stun_attr = NULL;
|
msg->stun_attr = NULL;
|
||||||
while (len > 0) {
|
while (len > 0) {
|
||||||
i = stun_parse_attribute(msg, p);
|
i = stun_parse_attribute(msg, p);
|
||||||
if (i <= 0) {
|
if (i <= 0 || i > len) {
|
||||||
SU_DEBUG_3(("%s: Error parsing attribute.\n", __func__));
|
SU_DEBUG_3(("%s: Error parsing attribute.\n", __func__));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user