Changeset 4165 for pjproject


Ignore:
Timestamp:
Jun 14, 2012 9:04:20 AM (12 years ago)
Author:
bennylp
Message:

Fixed #1535: Pending outgoing TCP transmission may cause crash if the library is shutdown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transaction.c

    r4001 r4165  
    17381738    /* Check if transaction has cancelled itself from this transmit 
    17391739     * notification (https://trac.pjsip.org/repos/ticket/1033). 
    1740      */ 
    1741     if (tdata->mod_data[mod_tsx_layer.mod.id] == NULL) { 
     1740     * Also check if the transaction layer itself may have been shutdown 
     1741     * (https://trac.pjsip.org/repos/ticket/1535) 
     1742     */ 
     1743    if (mod_tsx_layer.mod.id < 0 || 
     1744        tdata->mod_data[mod_tsx_layer.mod.id] == NULL) 
     1745    { 
    17421746        *cont = PJ_FALSE; 
    17431747        return; 
Note: See TracChangeset for help on using the changeset viewer.