summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsip-ua/sip_inv.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip/src/pjsip-ua/sip_inv.c')
-rw-r--r--pjsip/src/pjsip-ua/sip_inv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjsip/src/pjsip-ua/sip_inv.c b/pjsip/src/pjsip-ua/sip_inv.c
index a41f7f6e..5ab97345 100644
--- a/pjsip/src/pjsip-ua/sip_inv.c
+++ b/pjsip/src/pjsip-ua/sip_inv.c
@@ -1274,8 +1274,8 @@ PJ_DEF(pj_status_t) pjsip_inv_end_session( pjsip_inv_session *inv,
if (inv->invite_tsx->status_code < 100) {
pjsip_tsx_terminate(inv->invite_tsx, 487);
-
- return PJSIP_ETSXDESTROYED;
+ *p_tdata = NULL;
+ return PJ_SUCCESS;
}
/* The CSeq here assumes that the dialog is started with an