]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_iax2.c: Avoid crash with IAX2 switch support.
authorSean Bright <sean@seanbright.com>
Fri, 7 Jul 2023 19:57:39 +0000 (15:57 -0400)
committerAsterisk Development Team <asteriskteam@digium.com>
Wed, 6 Sep 2023 16:46:45 +0000 (16:46 +0000)
commit9918cf1de34ec4d9970ff3b4c4846a51f4d11c0e
treed54f528b726e23312c5428185d7c6ee65578aaaa
parent5bac0f6fbdded6abac506a6f6b13796a3905b232
chan_iax2.c: Avoid crash with IAX2 switch support.

A change made in 82cebaa0 did not properly handle the case when a
channel was not provided, triggering a crash. ast_check_hangup(...)
does not protect against NULL pointers.

Fixes #180

(cherry picked from commit 39912b91384b4a6a4b4b34cdd338970c184fb096)
channels/chan_iax2.c