Dial API: Prevent crash on NULL cap
authorKinsey Moore <kmoore@digium.com>
Mon, 21 Jul 2014 17:03:58 +0000 (17:03 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 21 Jul 2014 17:03:58 +0000 (17:03 +0000)
commit878db87fc09327b2116ecc291dde8595396dd19e
tree2b7129f1dafc9cf91ee57371e5619c7ea1de1e34
parent6e31ca48b05552e507b3d340cc2ee4aa86a8dc7e
Dial API: Prevent crash on NULL cap

This prevents a crash in the Dial API triggered by use of the Page()
application where a format capability struct was used before checking
whether it was NULL.

ASTERISK-24074 #close

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@419111 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/dial.c