]> git.ipfire.org Git - thirdparty/asterisk.git/commit
resource_channels.c: Don't call ast_channel_get_by_name on empty optional arguments
authorSven Kube <mail@sven-kube.de>
Wed, 30 Jul 2025 10:26:13 +0000 (12:26 +0200)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 30 Jul 2025 15:36:06 +0000 (15:36 +0000)
commit9820a622639d4f691e61b063c9128916487d8cad
treeb46504f4d254884923f1727662b1a5d6bd181939
parent4a3c9ea5748ed9cf83e8b1419139784ea74316c3
resource_channels.c: Don't call ast_channel_get_by_name on empty optional arguments

`ast_ari_channels_create` and `ast_ari_channels_dial` called the
`ast_channel_get_by_name` function with optional arguments. Since
8f1982c4d6, this function logs an error for empty channel names.
This commit adds checks for empty optional arguments that are used
to call `ast_channel_get_by_name` to prevent these error logs.
res/ari/resource_channels.c