Add check if module has been unregistered in mod_ua module (in sip_ua_layer.c). (#2840)

remotes/origin/update_contact_on_ip_change
Nanang Izzuddin 3 years ago committed by GitHub
parent c12d12cab7
commit c7c4ebc7b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -165,6 +165,12 @@ static void mod_ua_on_tsx_state( pjsip_transaction *tsx, pjsip_event *e)
{
pjsip_dialog *dlg;
/* If the module id is -1, it could mean that the module has been
* destroyed.
*/
if (mod_ua.mod.id == -1)
return;
/* Get the dialog where this transaction belongs. */
dlg = (pjsip_dialog*) tsx->mod_data[mod_ua.mod.id];

Loading…
Cancel
Save