summaryrefslogtreecommitdiff
path: root/formats
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2018-01-04 16:37:52 -0500
committerCorey Farrell <git@cfware.com>2018-01-04 16:50:04 -0500
commitcfb88f3ac13104549f8561aa1fc0f965a279574a (patch)
tree4099a238137e5f31d3d1b1968f28e0c4d0d03602 /formats
parent4eccf697e1c9ee87655cf8a56449dc353cec8a66 (diff)
pbx: Prevent execution of NULL pointer.
pbx_extension_helper has a check for q->swo.exec == NULL but it doesn't actually return so we would still run the function. Fix the return. Move the 'int res' variable into the only scope which uses it. Also fix a copy-paste error in ast_pbx_init which could result in a crash on allocation failure (we exit with a normal error instead). Change-Id: I0693af921fdc7f56b6a72a21fb816ed08b960a69
Diffstat (limited to 'formats')
0 files changed, 0 insertions, 0 deletions