Changeset 4413


Ignore:
Timestamp:
Mar 5, 2013 6:29:15 AM (12 years ago)
Author:
ming
Message:

Re #1616: Fixed assertion trying to release group lock when STUN transaction is already destroyed in the callback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/stun_transaction.c

    r4360 r4413  
    343343 
    344344    if (tsx->transmit_count >= PJ_STUN_MAX_TRANSMIT_COUNT) { 
     345        /* tsx may be destroyed when calling the callback below */ 
     346        pj_grp_lock_t *grp_lock = tsx->grp_lock; 
     347 
    345348        /* Retransmission count exceeded. Transaction has failed */ 
    346349        tsx->retransmit_timer.id = 0; 
     
    353356            } 
    354357        } 
    355         pj_grp_lock_release(tsx->grp_lock); 
     358        pj_grp_lock_release(grp_lock); 
    356359        /* We might have been destroyed, don't try to access the object */ 
    357360        pj_log_pop_indent(); 
Note: See TracChangeset for help on using the changeset viewer.