config: Fix inf loop using ast_category_browse and ast_variable_retrieve
authorGeorge Joseph <george.joseph@fairview5.com>
Thu, 16 Oct 2014 17:32:16 +0000 (17:32 +0000)
committerGeorge Joseph <george.joseph@fairview5.com>
Thu, 16 Oct 2014 17:32:16 +0000 (17:32 +0000)
commitc2ec5f0f6f7f9b6b8e87490c4c09166641beee7b
treec39cdb3da9ae9b502c06201c8e06f1558f3b1bc3
parent86a4ce495783434f6d4fef5484b44147e4b3a7b7
config: Fix inf loop using ast_category_browse and ast_variable_retrieve

Fix infinite loop when calling ast_variable_retrieve inside an
ast_category_browse loop when there is more than 1 category with
the same name.

Tested-by: George Joseph

Review: https://reviewboard.asterisk.org/r/4089/
........

Merged revisions 425713 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 425714 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@425715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/config.h
main/config.c
tests/test_config.c