]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel: Short-circuit ast_channel_get_by_name() on empty arg.
authorSean Bright <sean.bright@gmail.com>
Tue, 30 Nov 2021 20:16:45 +0000 (15:16 -0500)
committerKevin Harwell <kharwell@digium.com>
Mon, 6 Dec 2021 16:14:32 +0000 (10:14 -0600)
commit00c3d6088126918b8ebebc5d70b8f490480e9be7
treebe39b8e2d47c6ef7ba61784230acc2ca8f9c1318
parenta64129943ba9be396c7e0309c83c197f5e28325c
channel: Short-circuit ast_channel_get_by_name() on empty arg.

We know that passing a NULL or empty argument to
ast_channel_get_by_name() will never result in a matching channel and
will always result in an error being emitted, so just short-circuit
out in that case.

ASTERISK-28219 #close

Change-Id: I88eadc748e9c6996fc17467b0a05881bbfd00bce
main/channel.c