Changeset 3084


Ignore:
Timestamp:
Jan 29, 2010 10:00:04 PM (15 years ago)
Author:
bennylp
Message:

More ticket #1033:

  • fix for r3071: added protection for case when TSX_HAS_PENDING_TRANSPORT flag is set to the transaction but pending_tx is NULL, causing crash
File:
1 edited

Legend:

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

    r3071 r3084  
    11321132             * http://trac.pjsip.org/repos/ticket/1033) 
    11331133             */ 
    1134             tsx->pending_tx->mod_data[mod_tsx_layer.mod.id] = NULL; 
    1135             tsx->pending_tx = NULL; 
     1134            if (tsx->pending_tx) { 
     1135                tsx->pending_tx->mod_data[mod_tsx_layer.mod.id] = NULL; 
     1136                tsx->pending_tx = NULL; 
     1137            } 
    11361138            tsx->transport_flag &= ~(TSX_HAS_PENDING_TRANSPORT); 
    11371139        } 
Note: See TracChangeset for help on using the changeset viewer.