]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config.c: Fix potential memory corruption after [section](+). 29/1429/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:52:49 +0000 (14:52 -0500)
commit728a2b7013abf9d385e6fef654f23be33af6e5d6
treedf013f5ef6a0b87efe13340b695e9af326c96ab1
parent6c11fa2277dfd9aef4f017c72f31c23fdfa837b4
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