From: Mark Michelson Date: Wed, 26 Mar 2008 00:02:31 +0000 (+0000) Subject: This ensures that the manager interface is not enabled by default. Prior to this X-Git-Tag: 1.6.0-beta7~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43d70915bb5e7fdd5fe5afa2c4516c362548e4b9;p=thirdparty%2Fasterisk.git This ensures that the manager interface is not enabled by default. Prior to this change, it was possible to start Asterisk with the manager interface enabled, then either comment out the enabled option or make manager.conf unopenable and the manager interface would still be enabled. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@110831 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/manager.c b/main/manager.c index 03ea2a178d..e54238c23e 100644 --- a/main/manager.c +++ b/main/manager.c @@ -3714,6 +3714,8 @@ static int __init_manager(int reload) struct ast_variable *var; struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 }; + manager_enabled = 0; + if (!registered) { /* Register default actions */ ast_manager_register2("Ping", 0, action_ping, "Keepalive command", mandescr_ping);