]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 6 Dec 2021 16:19:37 +0000 (10:19 -0600)
commitc37cc5d3bce9a881423d2aaea9d45a10bdbcbce8
treed846aeba028be850c9fe35bea06a051570eea91e
parent04d00c203cf1dbe2e2e102a1f3ef1354c7fe7b3e
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