]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip_transport_events.c: Fix crash using stale transport pointer.
authorRoss Beer <ross.beer@voicehost.co.uk>
Wed, 7 Mar 2018 12:15:05 +0000 (12:15 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 28 Mar 2018 22:19:59 +0000 (16:19 -0600)
commit71b3a72c329633db5379f811cc37455c9cea5569
tree7ba11375d3850c0b54162993f92580c43fc3edc6
parentf13131b5cdee219841cc767e01101472ebd46606
pjsip_transport_events.c: Fix crash using stale transport pointer.

Apparently it is possible for the transport to be destroyed without
triggering the transport callback logic.  As a result the transport gets
destroyed and we have a stale pointer in the active_transports container.

* Invoke the transport monitor callback checks when the transport is
destroyed in addition to when it is disconnected and shutdown.

ASTERISK-27688

Change-Id: Ia9b5469fea8f2b3f2d8476fae6b748a4d23e7261
res/res_pjsip/pjsip_transport_events.c