]> 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)
committerSven Kube <mail@sven-kube.de>
Wed, 30 Jul 2025 15:36:00 +0000 (15:36 +0000)
commit280b13a053e1fff8281904d8261860cfc7fba02d
treebaee25be46152535e9b99085b17305c36f775750
parent1e0205fb688c03169036037aef94660fcdaff6d3
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