[Home]

Summary:ASTERISK-00830: [patch] ast_manager_register doesn't check if action is already registered
Reporter:James Golovich (jamesgolovich)Labels:
Date Opened:2004-01-13 22:07:57.000-0600Date Closed:2008-01-15 14:41:33.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk-manreg.patch
Description:ast_manager_register doesn't check if an action is already registered and will register duplicate actions.  This causes segfaults when a module with a duplicate name is unloaded and 'show manager commands' is run.

Simple patch attached
Comments:By: Brian West (bkw918) 2004-01-14 00:38:52.000-0600

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 14:41:33.000-0600

Repository: asterisk
Revision: 2029

U   trunk/manager.c

------------------------------------------------------------------------
r2029 | jeremy | 2008-01-15 14:41:33 -0600 (Tue, 15 Jan 2008) | 2 lines

Check for already registered manager command. Bug ASTERISK-830

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=2029