]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Thu May 22 06:48:11 EDT 2008 Pekka.Pessi@nokia.com
authorMichael Jerris <mike@jerris.com>
Sun, 25 May 2008 15:18:36 +0000 (15:18 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 25 May 2008 15:18:36 +0000 (15:18 +0000)
  * outbound.c: fixed klocwork issues

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8631 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/nua/outbound.c

index 36d5cf19c817a39e5f34c890d037f62dac4c6097..2ec17ac70e873e603a325f3432ab7a22901bd736 100644 (file)
@@ -1 +1 @@
-Sun May 25 11:17:39 EDT 2008
+Sun May 25 11:18:13 EDT 2008
index 60418ae035d532883eea4c667c275d43dd217ca4..b89374ba7bc7302888b9107d0dc9957f5827c7be 100644 (file)
@@ -723,6 +723,9 @@ static int create_keepalive_message(outbound_t *ob, sip_t const *regsip)
 
   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 @@ static int response_to_keepalive_options(outbound_t *ob,
   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,