]> 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)
committerSean Bright <sean@seanbright.com>
Wed, 12 Jul 2023 17:39:59 +0000 (17:39 +0000)
commitd26a00ef3484f7fa602044e73e31bcefc8ca1917
tree228448319526c1db124bc384ae37cf0d4de2b35d
parente120694711933f32cf5b64f7ee41f022dc7bca75
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
channels/chan_iax2.c