[asterisk-commits] mjordan: branch 12 r414882 - in /branches/12: ./ main/config.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri May 30 07:03:09 CDT 2014
Author: mjordan
Date: Fri May 30 07:03:06 2014
New Revision: 414882
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=414882
Log:
main/config.c: AMI action UpdateConfig EmptyCat clears all categories
When invoking UpdateConfig AMI action with Action set to EmptyCat, Asterisk
will make all categories empty in the config but the one requested with a
Cat variable. This is due to a bug in ast_category_empty (main/config.c)
that makes an incorrect comparison for a category name.
This patch corrects the comparison such that only the requested category
is cleared.
Review: https://reviewboard.asterisk.org/r/3573/
#ASTERISK-23803 #close
Reported by: zvision
patches:
manager.c.diff uploaded by zvision (License 5755)
........
Merged revisions 414880 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 414881 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
branches/12/ (props changed)
branches/12/main/config.c
Propchange: branches/12/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: branches/12/main/config.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/config.c?view=diff&rev=414882&r1=414881&r2=414882
==============================================================================
--- branches/12/main/config.c (original)
+++ branches/12/main/config.c Fri May 30 07:03:06 2014
@@ -1168,7 +1168,7 @@
struct ast_category *cat;
for (cat = cfg->root; cat; cat = cat->next) {
- if (!strcasecmp(cat->name, category))
+ if (strcasecmp(cat->name, category))
continue;
ast_variables_destroy(cat->root);
cat->root = NULL;
More information about the asterisk-commits
mailing list