Fixed #1535: Pending outgoing TCP transmission may cause crash if the library is shutdown
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4165 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
87f725e09b
commit
514e893c9d
|
@ -1737,8 +1737,12 @@ static void send_msg_callback( pjsip_send_state *send_state,
|
|||
|
||||
/* Check if transaction has cancelled itself from this transmit
|
||||
* notification (https://trac.pjsip.org/repos/ticket/1033).
|
||||
* Also check if the transaction layer itself may have been shutdown
|
||||
* (https://trac.pjsip.org/repos/ticket/1535)
|
||||
*/
|
||||
if (tdata->mod_data[mod_tsx_layer.mod.id] == NULL) {
|
||||
if (mod_tsx_layer.mod.id < 0 ||
|
||||
tdata->mod_data[mod_tsx_layer.mod.id] == NULL)
|
||||
{
|
||||
*cont = PJ_FALSE;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue