]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx: Prevent execution of NULL pointer.
authorCorey Farrell <git@cfware.com>
Thu, 4 Jan 2018 22:07:03 +0000 (17:07 -0500)
committerCorey Farrell <git@cfware.com>
Thu, 4 Jan 2018 22:07:03 +0000 (17:07 -0500)
commit0f141351f9287173cf872f0cd24cada95903f361
tree881dfcba4175549ef0c3d17aa7306a3584f0fe18
parentb8271826b358afd887f9476201fb7fdf12b7119c
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.

Change-Id: I0693af921fdc7f56b6a72a21fb816ed08b960a69
main/pbx.c