]> 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)
commit3f6e60239212be71e469621dc43f997b52fa954d
tree170d814f5735de3eb9ebae30dcd14398b549209f
parentbd063c7732ec5e7c4448c15d39fd2a441c9dbaf2
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