]> 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:35:22 +0000 (09:35 -0500)
commit549542e50e670e57630a84b67c34fee52600227c
treee269c4b9ed1c83ca37533f399df0c7a00389eb7b
parent2852dac48021ec0615f8924acd1fda1e622ef7c5
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