From: Michael L. Young Date: Fri, 12 Apr 2013 22:34:46 +0000 (+0000) Subject: Fix Manager Segfault When app_queue Is Unloaded X-Git-Tag: 1.8.23.0-rc1~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ff1e29675261046cb9a647c6bf210408699c7c2;p=thirdparty%2Fasterisk.git Fix Manager Segfault When app_queue Is Unloaded When app_queue is unloaded, some manager commands are not being unregistered which result in a segfault. This patch corrects this. (closes issue ASTERISK-21397) Reported by: Peter Katzmann, Corey Farrell Tested by: Corey Farrell Patches: asterisk-21397-missing-unreg-manager-cmd_1.8.diff Michael L. Young (license 5026) asterisk-21397-missing-unreg-manager-cmd_11.diff Michael L. Young (license 5026) Review: https://reviewboard.asterisk.org/r/2444/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@385593 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 7b9a2e4109..0f6d3e5efa 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -8692,6 +8692,8 @@ static int unload_module(void) res |= ast_manager_unregister("QueuePause"); res |= ast_manager_unregister("QueueLog"); res |= ast_manager_unregister("QueuePenalty"); + res |= ast_manager_unregister("QueueReload"); + res |= ast_manager_unregister("QueueReset"); res |= ast_unregister_application(app_aqm); res |= ast_unregister_application(app_rqm); res |= ast_unregister_application(app_pqm);