Fixed ticket #316: Crash in registration session when transport returns error on sending authentication retry
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1335 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
aae2b1cab1
commit
3fe034a629
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue