[Freeswitch-svn] [commit] r10483 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN mikej at freeswitch.org
Thu Nov 20 14:47:11 PST 2008


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 {



More information about the Freeswitch-svn mailing list