]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config.c: Fix potential memory corruption after [section](+). 20/1420/1
authorRichard Mudgett <rmudgett@digium.com>
Mon, 12 Oct 2015 16:20:29 +0000 (11:20 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 12 Oct 2015 19:30:03 +0000 (14:30 -0500)
commit164e2860375a869f9a666977379cf63e4ca94391
tree77ad47deb75c21a883fc852b70f28e175aa97528
parentc1184789f2eef7512766f7285023f6db036b9bc7
config.c: Fix potential memory corruption after [section](+).

The memory corruption could happen if the [section](+) is the last section
in the file with trailing comments.  In this case process_text_line() has
left *last_cat is set to newcat and newcat is destroyed.

Change-Id: I0d1d999f553986f591becd000e7cc6ddfb978d93
main/config.c