]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config.c: Fix potential memory corruption after [section](+). 23/1423/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 18:04:59 +0000 (13:04 -0500)
commita99e821520405be48241f2a51c659cefd6939da2
treecd1c965ca24d6cd61a0894cecdd6f92ca9999105
parent8d31d2526bb6e37d5e6f91381482074d94957b01
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