[Freeswitch-trunk] [commit] r6541 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua
Freeswitch SVN
mikej at freeswitch.org
Thu Dec 6 14:18:42 EST 2007
Author: mikej
Date: Thu Dec 6 14:18:42 2007
New Revision: 6541
Modified:
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c
Log:
if the leg is already destroyed, just kill the original request.
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c Thu Dec 6 14:18:42 2007
@@ -1089,9 +1089,14 @@
char const *phrase = "OK", *reason = NULL;
char const *invite_branch;
- assert(ds->ds_leg);
assert(cr->cr_orq);
+ if (!ds->ds_leg) {
+ nta_outgoing_destroy(cr->cr_orq);
+ return -1;
+ }
+
+
msg = nta_outgoing_getrequest(cr->cr_orq);
sip = sip_object(msg);
if (!msg)
More information about the Freeswitch-trunk
mailing list