]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session.c: Fix crash when declining an active stream.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 18 Aug 2017 22:37:12 +0000 (17:37 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 22 Aug 2017 16:57:21 +0000 (11:57 -0500)
commit02044e6470682a2ebe790c3181af7d82ee369c8f
tree74c5dc2394d96b7e0534f14a52e6fc1aaafa4d2d
parent3e9cd53b5cfd41cd1d5e14d4e5a690c3633e2bd3
res_pjsip_session.c: Fix crash when declining an active stream.

If a previously active stream is declined we could crash because the
channel's thread is still using the stream while we are updating the
topology in the serializer thread.

* Defer removing any declined stream's handler until we have blocked the
channel's thread with the channel lock.

ASTERISK-27212

Change-Id: I50e1d3ef26f8e41948f4c411ee329aa3b960a420
res/res_pjsip_session.c