avoid seg in invalid presence payload

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10483 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-11-20 22:47:11 +00:00
parent 9ceccbe213
commit e7755a78f3
1 changed files with 1 additions and 1 deletions

View File

@ -1611,7 +1611,7 @@ void sofia_presence_handle_sip_i_publish(nua_t *nua, sofia_profile_t *profile, n
note_txt = note->txt; 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, ':'))) { if ((rpid = strchr(act->child->name, ':'))) {
rpid++; rpid++;
} else { } else {