mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
FS-10926: [mod_sofia] fix crash from malformed as-feature-event subscribe messae with malformed xml
This commit is contained in:
parent
adb813e089
commit
94a094c5ef
@ -4253,7 +4253,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "device", device->txt);
|
||||
}
|
||||
|
||||
if (!strcmp(xml->name, "SetDoNotDisturb")) {
|
||||
if (xml->name && !strcmp(xml->name, "SetDoNotDisturb")) {
|
||||
switch_xml_t action = NULL;
|
||||
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Feature-Action", "SetDoNotDisturb");
|
||||
@ -4263,7 +4263,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
|
||||
}
|
||||
}
|
||||
|
||||
if (!strcmp(xml->name, "SetForwarding")) {
|
||||
if (xml->name && !strcmp(xml->name, "SetForwarding")) {
|
||||
switch_xml_t cfwd_type, cfwd_enable, cfwd_target;
|
||||
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Feature-Action", "SetCallForward");
|
||||
|
Loading…
x
Reference in New Issue
Block a user