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

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


Author: mikej
Date: Fri May 15 11:09:49 2009
New Revision: 13342

Log:
Wed May 13 12:03:01 CDT 2009  Pekka Pessi <first.last at nokia.com>
  * sdp_print(): correctly handle NULL session
  Ignore-this: 206a9027d6dfb73371d7f0ddac5f640b
  
  Coverity issue.


Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sdp/sdp_print.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:09:49 2009
@@ -1 +1 @@
-Fri May 15 11:08:48 CDT 2009
+Fri May 15 11:09:32 CDT 2009

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sdp/sdp_print.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sdp/sdp_print.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sdp/sdp_print.c	Fri May 15 11:09:49 2009
@@ -154,7 +154,10 @@
     p->pr_mode_manual = (flags & sdp_f_mode_manual) != 0;
     p->pr_mode_always = (flags & sdp_f_mode_always) != 0;
 
-    print_session(p, session);
+    if (sdp)
+      print_session(p, session);
+    else
+      printing_error(p, "NULL session description");
 
     return p;
   }
@@ -267,8 +270,6 @@
 {
   p->pr_ok = 1;
 
-  if (!sdp)
-    printing_error(p, "NULL session description");
   if (p->pr_ok && sdp->sdp_version)
     print_version(p, sdp->sdp_version);
   if (p->pr_ok && sdp->sdp_origin)



More information about the Freeswitch-svn mailing list