Module: sip-router
Branch: 3.2
Commit: 97738606ba186fd41a4137e6b4c28f5d97a403e9
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=97738606ba186fd41a4137e6b4c28f5d97a403e9

Author: pd <[email protected]>
Committer: pd <[email protected]>
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)


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to