]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx_ael: unregister AELSub application and CLI commands on module load failure
authorAndreas Wehrmann <andreas-wehrmann@users.noreply.github.com>
Fri, 18 Apr 2025 08:56:05 +0000 (10:56 +0200)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 1 May 2025 12:39:48 +0000 (12:39 +0000)
commit3d4fd3f6fe9bafc01c69a048ec6f968a6a772432
tree82d31ad1cdd4d2c8b75ebef94c85a7704f6108e1
parent7ce8720528c4b5bf7ffac953b08a7204ec331abe
pbx_ael: unregister AELSub application and CLI commands on module load failure

This fixes crashes/hangs I noticed with Asterisk 20.3.0 and 20.13.0 and quickly found out,
that the AEL module doesn't do proper cleanup when it fails to load.
This happens for example when there are syntax errors and AEL fails to compile in which case pbx_load_module()
returns an error but load_module() doesn't then unregister CLI cmds and the application.

(cherry picked from commit aca78d493698acae12d0368c441faa359ce008a5)
pbx/pbx_ael.c