summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-06-01 12:51:07 +0000
committerBenny Prijono <bennylp@teluu.com>2007-06-01 12:51:07 +0000
commitc373b9a2a4a86563777799bf6a490869e68a26b4 (patch)
treeb04ae9855f8da1bc37a99bdad295a99942239e60
parent22a0d3a9cb630bb174abef3a939cfa765839b01c (diff)
Fixed ticket #316: Crash in registration session when transport returns error on sending authentication retry
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1335 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsip-ua/sip_reg.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/pjsip/src/pjsip-ua/sip_reg.c b/pjsip/src/pjsip-ua/sip_reg.c
index e48f28d1..6a5c3c2f 100644
--- a/pjsip/src/pjsip-ua/sip_reg.c
+++ b/pjsip/src/pjsip-ua/sip_reg.c
@@ -613,8 +613,10 @@ static void tsx_callback(void *token, pjsip_event *event)
&tdata);
if (status == PJ_SUCCESS) {
+ ++regc->busy;
status = pjsip_regc_send(regc, tdata);
- }
+ --regc->busy;
+ }
if (status != PJ_SUCCESS) {
@@ -651,11 +653,6 @@ static void tsx_callback(void *token, pjsip_event *event)
pjsip_rx_data *rdata;
pj_int32_t expiration = 0xFFFF;
- /* User must not destroy the regc while transaction was in
- * progress
- */
- pj_assert(regc->_delete_flag == 0);
-
if (tsx->status_code/100 == 2) {
int i;
pjsip_contact_hdr *hdr;