]> git.ipfire.org Git - thirdparty/asterisk.git/commit
menuselect: Resolve infinite loop in dependency scenario.
authorJoshua C. Colp <jcolp@sangoma.com>
Wed, 24 Jun 2020 10:25:47 +0000 (07:25 -0300)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 25 Jun 2020 19:30:09 +0000 (14:30 -0500)
commit2513235859fc50e8c28545977702b9b7b439f5f5
tree1d7a57af527b7f13eec61853e6840af983ef4267
parent745ae35f0e049a7a55e9a43194f3da0a932432d4
menuselect: Resolve infinite loop in dependency scenario.

Given a scenario where a module has a dependency on both
an external library and a module if the external library was
available and the module was not an infinite loop would
occur. This happened due to the code changing the dependecy
status to no failure on each dependency checking loop
iteration, resulting in the code thinking that it had
gone from no failure to failure each time triggering another
dependency check.

This change makes it so that the old dependency status is
preserved throughout the dependency checking allowing it to
determine that after the first iteration the dependency
status does not transition from no failure to failure.

ASTERISK-28930

Change-Id: Iea06d45d9fd6d8bfd068882a0bb7e23a53ec3e84
menuselect/menuselect.c
menuselect/menuselect.h