]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx.c: Prevent infinite recursion in manager_show_dialplan_helper. 54/3754/1
authorEtienne Lessard <elessard@proformatique.com>
Mon, 29 Aug 2016 12:11:47 +0000 (08:11 -0400)
committerEtienne Lessard <elessard@proformatique.com>
Mon, 29 Aug 2016 12:13:43 +0000 (08:13 -0400)
commit1819cbebf3ec1c04c05b780326c3f1170459a94b
tree46957f2c7342af232ff36f87281ed9429173add6
parent89b6f2adbcbe2fbd8b7f4f72c805816b81f9731e
pbx.c: Prevent infinite recursion in manager_show_dialplan_helper.

Previously, if context A was including context B and context B was including
context A, i.e. if there was a circular dependency between contexts, then
calling manager_show_dialplan_helper could lead to an infinite recursion,
resulting in a crash.

This commit applies the same solution as the one implemented in the
show_dialplan_helper function. The manager_show_dialplan_helper and
show_dialplan_helper functions contain lots of code in common, but the former
was missing the "infinite recursion avoidance" code.

ASTERISK-26226 #close

Change-Id: I1aea85133c21787226f4f8442253a93000aa0897
main/pbx.c