]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
avoid seg in invalid presence payload
authorMichael Jerris <mike@jerris.com>
Thu, 20 Nov 2008 22:47:11 +0000 (22:47 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 20 Nov 2008 22:47:11 +0000 (22:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10483 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_presence.c

index 0b6c14c5fea95f8649571815665b533638194778..fe6a41eaea2d319ff8e74d2b7ce0cabd58fe6a38 100644 (file)
@@ -1611,7 +1611,7 @@ void sofia_presence_handle_sip_i_publish(nua_t *nua, sofia_profile_t *profile, n
                                        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 {