[Freeswitch-svn] [commit] r8618 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/soa
Freeswitch SVN
mikej at freeswitch.org
Sun May 25 11:06:27 EDT 2008
Author: mikej
Date: Sun May 25 11:06:27 2008
New Revision: 8618
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/soa/soa_static.c
Log:
Tue May 20 09:35:46 EDT 2008 Pekka.Pessi at nokia.com
* soa_static.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:06:27 2008
@@ -1 +1 @@
-Sun May 25 11:05:03 EDT 2008
+Sun May 25 11:06:22 EDT 2008
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/soa/soa_static.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/soa/soa_static.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/soa/soa_static.c Sun May 25 11:06:27 2008
@@ -1117,6 +1117,8 @@
if (action == generate_offer)
remote = NULL;
+ else if (remote == NULL)
+ return soa_set_status(ss, 500, "No remote SDP");
/* Pre-negotiation Step: Expand truncated remote SDP */
if (local && remote) switch (action) {
@@ -1127,6 +1129,8 @@
SU_DEBUG_5(("%s: remote %s is truncated: expanding\n",
by, action == generate_answer ? "offer" : "answer"));
remote = soa_sdp_expand_media(tmphome, remote, local);
+ if (remote == NULL)
+ return soa_set_status(ss, 500, "Cannot expand remote session");
}
default:
break;
More information about the Freeswitch-svn
mailing list