]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/config.c: AMI action UpdateConfig EmptyCat clears all categories
authorMatthew Jordan <mjordan@digium.com>
Fri, 30 May 2014 12:03:06 +0000 (12:03 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 30 May 2014 12:03:06 +0000 (12:03 +0000)
commit1ff5e67a888e568854f4dbfb6982174e3ca818b7
tree6c48b886d0564e871d62ddbfcfd9a22904cfead2
parent676ff4efb07a390785ef36b5014dbd992c71a9d0
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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@414882 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/config.c