[commit] r10483 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: mikej Date: Thu Nov 20 17:47:11 2008 New Revision: 10483 Log: avoid seg in invalid presence payload Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c Thu Nov 20 17:47:11 2008 @@ -1611,7 +1611,7 @@ note_txt = note->txt; } - if (person && (act = switch_xml_child(person, "rpid:activities"))) { + if (person && (act = switch_xml_child(person, "rpid:activities")) && act->child && act->child->name) { if ((rpid = strchr(act->child->name, ':'))) { rpid++; } else {
participants (1)
-
FreeSWITCH SVN