]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_fax.c: crash on framehook with no dsp in fax detect
authorScott Griepentrog <sgriepentrog@digium.com>
Thu, 19 Dec 2013 16:57:29 +0000 (16:57 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Thu, 19 Dec 2013 16:57:29 +0000 (16:57 +0000)
commit1f1ac57bbe46cb8a059258725db6dcb9bf0015d9
treeaf105069c298703c1d566d56abb84301570ea668
parente87fa7d73191089c80a03b65e3156e110549cbae
res_fax.c: crash on framehook with no dsp in fax detect

In fax_detect_framehook() a null pointer reference can occur where a
voice frame is processed but no dsp is attached to the fax detection
structure.  The code block that rejects frames that detection cannot
be processed on is checking for dsp but falls through when it should
instead return, as this change implements.

(closes issue ASTERISK-22942)
Reported by: adomjan
Review: https://reviewboard.asterisk.org/r/3076/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@404351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_fax.c