Module: sip-router
Branch: master
Commit: f042a01c0af018bbfa3a53d132cb66c10f89a69a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f042a01…
Author: pd <peter.dunkley(a)crocodile-rcs.com>
Committer: pd <peter.dunkley(a)crocodile-rcs.com>
Date: Sun Nov 20 21:42:14 2011 +0000
modules_k/presence_xml: Fixed segmentation fault in pres_check_activities()
---
modules_k/presence_xml/pres_check.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules_k/presence_xml/pres_check.c b/modules_k/presence_xml/pres_check.c
index a43ad4b..eecb1c4 100644
--- a/modules_k/presence_xml/pres_check.c
+++ b/modules_k/presence_xml/pres_check.c
@@ -167,7 +167,9 @@ int presxml_check_activities(struct sip_msg *msg, str presentity_uri,
str activi
{
retval = -2;
}
+ break;
}
+
if (activitiesNode->children == NULL)
{
LM_DBG("activities node has no children\n");
@@ -175,6 +177,7 @@ int presxml_check_activities(struct sip_msg *msg, str presentity_uri,
str activi
{
retval = -2;
}
+ break;
}
if ((activityNode = xmlNodeGetNodeByName(activitiesNode, nodeName, NULL)) != NULL)