]> 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:24:27 +0000 (10:24 -0600)
commite9cac5f4bf6883ecd8741f40a00fbf3069a581a3
treed682a9251c980e926d23e47d4024e006160886da
parent59fcd1e7e20de07ceece67e27d7db7260d465772
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