chan_iax2: Fix a segfault introduced by call ID logging
authorJonathan Rose <jrose@digium.com>
Fri, 20 Jul 2012 19:36:05 +0000 (19:36 +0000)
committerJonathan Rose <jrose@digium.com>
Fri, 20 Jul 2012 19:36:05 +0000 (19:36 +0000)
commita5e10001b29207598a203beb475edbc89a02cc4d
tree96e362edf84c36d77678dd7da8cf66b1bf918d60
parentfbf4040a36992856397ebba90bffa54d276f0d86
chan_iax2: Fix a segfault introduced by call ID logging

Didn't previously check that a non NULL IAX channel was stored in the array
at the requested position before attempting iax_pvt_callid_get

(closes issue ASTERISK-20145)
Reported by: Birger "WIMPy" Harzenetter

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_iax2.c