]> 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:42 +0000 (10:19 -0600)
commit4195949e0708efd944451dcdd19acfbac9120f99
tree28160c66ead08f7b74cadc46f752a431010d64a5
parentb0a3951849274e2e9e0fc7454d7ee29f00898d33
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