diff options
Diffstat (limited to 'pjsip/src')
-rw-r--r-- | pjsip/src/pjsip/sip_transaction.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pjsip/src/pjsip/sip_transaction.c b/pjsip/src/pjsip/sip_transaction.c index 026220a2..ffffed16 100644 --- a/pjsip/src/pjsip/sip_transaction.c +++ b/pjsip/src/pjsip/sip_transaction.c @@ -1131,8 +1131,10 @@ static void tsx_set_state( pjsip_transaction *tsx, * to ignore that (otherwise we'll get assertion, see * http://trac.pjsip.org/repos/ticket/1033) */ - tsx->pending_tx->mod_data[mod_tsx_layer.mod.id] = NULL; - tsx->pending_tx = NULL; + if (tsx->pending_tx) { + tsx->pending_tx->mod_data[mod_tsx_layer.mod.id] = NULL; + tsx->pending_tx = NULL; + } tsx->transport_flag &= ~(TSX_HAS_PENDING_TRANSPORT); } |