[Freeswitch-svn] [commit] r8631 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nua

Freeswitch SVN mikej at freeswitch.org
Sun May 25 11:18:36 EDT 2008


Author: mikej
Date: Sun May 25 11:18:36 2008
New Revision: 8631

Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/outbound.c

Log:
Thu May 22 06:48:11 EDT 2008  Pekka.Pessi at nokia.com
  * outbound.c: fixed klocwork issues


Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Sun May 25 11:18:36 2008
@@ -1 +1 @@
-Sun May 25 11:17:39 EDT 2008
+Sun May 25 11:18:13 EDT 2008

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/outbound.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/outbound.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/outbound.c	Sun May 25 11:18:36 2008
@@ -723,6 +723,9 @@
 
   unsigned d = ob->ob_keepalive.interval;
 
+  if (msg == NULL)
+    return -1;
+
   assert(regsip); assert(regsip->sip_request);
 
   if (m && m->m_params) {
@@ -842,6 +845,13 @@
   if (status < 200)
     return 0;
 
+  if (sip == NULL) {
+    SU_DEBUG_3(("outbound(%p): keepalive %u %s\n", (void *)ob->ob_owner,
+		status, phrase));
+    ob->ob_oo->oo_keepalive_error(ob->ob_owner, ob, status, phrase, TAG_END());
+    return 0;
+  }
+
   if (status == 401 || status == 407) {
     if (sip->sip_www_authenticate)
       challenged += auc_challenge(ob->ob_keepalive.auc,



More information about the Freeswitch-svn mailing list