[asterisk-commits] mmichelson: trunk r110831 - /trunk/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 25 19:02:32 CDT 2008


Author: mmichelson
Date: Tue Mar 25 19:02:31 2008
New Revision: 110831

URL: http://svn.digium.com/view/asterisk?view=rev&rev=110831
Log:
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.


Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?view=diff&rev=110831&r1=110830&r2=110831
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Tue Mar 25 19:02:31 2008
@@ -3714,6 +3714,8 @@
 	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);




More information about the asterisk-commits mailing list