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

FreeSWITCH SVN mikej at freeswitch.org
Fri May 15 09:12:41 PDT 2009


Author: mikej
Date: Fri May 15 11:12:41 2009
New Revision: 13345

Log:
Wed May 13 12:35:38 CDT 2009  Pekka Pessi <first.last at nokia.com>
  * nta_incoming_create_response(): sanitized oom check


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

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Fri May 15 11:12:41 2009
@@ -1 +1 @@
-Fri May 15 11:11:24 CDT 2009
+Fri May 15 11:12:29 CDT 2009

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c	Fri May 15 11:12:41 2009
@@ -6386,11 +6386,13 @@
     msg = nta_msg_create(irq->irq_agent, 0);
     sip = sip_object(msg);
 
-    if (sip && status != 0)
-      sip->sip_status = sip_status_create(msg_home(msg), status, phrase, NULL);
+    if (sip) {
+      if (status != 0)
+	sip->sip_status = sip_status_create(msg_home(msg), status, phrase, NULL);
 
-    if (nta_incoming_response_headers(irq, msg, sip) < 0)
-      msg_destroy(msg), msg = NULL;
+      if (nta_incoming_response_headers(irq, msg, sip) < 0)
+	msg_destroy(msg), msg = NULL;
+    }
   }
 
   return msg;



More information about the Freeswitch-svn mailing list