]> git.ipfire.org Git - thirdparty/asterisk.git/commit
acl: Fix allocation related issues.
authorCorey Farrell <git@cfware.com>
Thu, 16 Nov 2017 15:48:36 +0000 (10:48 -0500)
committerCorey Farrell <git@cfware.com>
Fri, 17 Nov 2017 14:36:10 +0000 (09:36 -0500)
commit9029b94c7a7a1f68affe48b716114bef3f7d71cc
treee79d93de4ef13e2f3e4d755025e95b77bf23e8c4
parent536e4a31b73c1cb9282008304a4b4a2cf10e66ee
acl: Fix allocation related issues.

Add checks for allocation errors, cleanup and report failure when they
occur.

* ast_duplicate_acl_list: Replace log warnings with errors, add missing
  line-feed.
* ast_append_acl: Add missing line-feed to logger message.
* ast_append_ha: Avoid ast_strdupa in loop by moving debug message to
  separate function.
* ast_ha_join: Use two separate calls to ast_str_append to avoid using
  ast_strdupa in a loop.

Change-Id: Ia19eaaeb0b139ff7ce7b971c7550e85c8b78ab76
main/acl.c