]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ami: Improve substring parsing for disabled events.
authorNaveen Albert <asterisk@phreaknet.org>
Thu, 24 Feb 2022 16:55:23 +0000 (16:55 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 7 Mar 2022 20:23:11 +0000 (14:23 -0600)
commitfbde0186c7393fe680c6d2447b8f7201f0ff815c
tree2c41fd6bd7009e529edaadd3b9d6b6336d6f565c
parentb40c4d59b1dd803cad79060fb5b5a48d249ba578
ami: Improve substring parsing for disabled events.

ASTERISK_29853 added the ability to selectively disable
AMI events on a global basis, but the logic for this uses
strstr which means that events with names which are the prefix
of another event, if disabled, could disable those events as
well.

Instead, we account for this possibility to prevent this
undesired behavior from occuring.

ASTERISK_29853

Change-Id: Icccd1872602889806740971e4adf932f92466959
main/manager.c