]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_dahdi/sig_pri: Fix crash on ISDN call hangup collision. 57/457/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 12 May 2015 22:34:45 +0000 (17:34 -0500)
committerJoshua Colp <jcolp@digium.com>
Wed, 13 May 2015 13:49:09 +0000 (08:49 -0500)
commit523fab02d8a7ba6e88ee46c37d0ac77ad5408cd9
tree30639c2ab8b792f8c56a499a89a551f74af69855
parentdd1363a5109afb9f1eb14698a9fd27deeed58a91
chan_dahdi/sig_pri: Fix crash on ISDN call hangup collision.

If an ISDN call is hungup by both sides at the same time a crash could
happen.

* Added missing NULL checks for the owner channel after calling
pri_queue_pvt_cause_data() in two places.  Code after those calls need to
check the owner channel pointer for NULL before use because
pri_queue_pvt_cause_data() needs to do deadlock avoidance to lock the
owner and the owner may get hung up.

ASTERISK-21893 #close
Reported by:  Alexandr Gordeev

Change-Id: Ica3e266ebc7a894b41d762326f08653e1904bb9a
channels/sig_pri.c