[Asterisk-cvs] asterisk manager.c,1.33,1.34
jeremy at lists.digium.com
jeremy at lists.digium.com
Wed Jan 14 00:39:26 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv459
Modified Files:
manager.c
Log Message:
Check for already registered manager command. Bug #836
Index: manager.c
===================================================================
RCS file: /usr/cvsroot/asterisk/manager.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- manager.c 1 Dec 2003 05:32:31 -0000 1.33
+++ manager.c 14 Jan 2004 06:31:18 -0000 1.34
@@ -820,6 +820,11 @@
ast_mutex_lock(&actionlock);
while(cur) { /* Walk the list of actions */
+ if (!strcasecmp(cur->action, action)) {
+ ast_log(LOG_WARNING, "Manager: Action '%s' already registered\n", action);
+ ast_mutex_unlock(&actionlock);
+ return -1;
+ }
prev = cur;
cur = cur->next;
}
More information about the svn-commits
mailing list