]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config.c: Fix #include after [section](+). 28/1428/1
authorRichard Mudgett <rmudgett@digium.com>
Mon, 12 Oct 2015 16:21:55 +0000 (11:21 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 12 Oct 2015 19:52:49 +0000 (14:52 -0500)
commit6c11fa2277dfd9aef4f017c72f31c23fdfa837b4
treebbc7d6d239e08ec536234d6701a379e262bb303c
parenta2677c141e4105f7cc9910e3b74466a87b3a0c4b
config.c: Fix #include after [section](+).

An #include right after a [section](+) would associate any variable
assignments before a new section in the #include with the wrong section.

* Fix section association by setting the current section to the appended
section.

* Fix '+' and '!' section flag interaction corner case depending upon
which flag came first.  If the '!' came first then it would be ignored.
If the '!' came after then it would affect the appended section.  The '!'
will now no longer be ignored.

ASTERISK-25461 #close
Reported by: Sean Pimental

Change-Id: Ic9d3191c8758048e2cbce6432f854b32531731c3
main/config.c