]> git.ipfire.org Git - thirdparty/asterisk.git/commit
manager.c: Fix potential memory leak and corruption.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 31 Jan 2018 21:40:36 +0000 (15:40 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 1 Feb 2018 19:51:27 +0000 (13:51 -0600)
commit3419a048b95cd5331b7fb6495df298f01b54327c
tree368a274f68ff827b2cf17f780ee2ed60a8a6d094
parentf041bc7863833c2d6b90b585694132171bc27aa2
manager.c: Fix potential memory leak and corruption.

ast_str_append_event_header() could potentially leak and corrupt memory if
the ast_str needed to expand to add the AMI event header.

* Fixed to return error if the ast_str_append() failed.

Change-Id: I92f36b855540743b208d76e274152ee2d758176d
main/manager.c