[Asterisk-code-review] channel: Short-circuit ast_channel_get_by_name() on empty arg. (asterisk[16])

Sean Bright asteriskteam at digium.com
Tue Nov 30 14:29:05 CST 2021


Sean Bright has uploaded a new patch set (#2). ( https://gerrit.asterisk.org/c/asterisk/+/17590 )

Change subject: channel: Short-circuit ast_channel_get_by_name() on empty arg.
......................................................................

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
---
M main/channel.c
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/90/17590/2
-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17590
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I88eadc748e9c6996fc17467b0a05881bbfd00bce
Gerrit-Change-Number: 17590
Gerrit-PatchSet: 2
Gerrit-Owner: Sean Bright <sean at seanbright.com>
Gerrit-CC: Friendly Automation
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211130/55c860e0/attachment.html>


More information about the asterisk-code-review mailing list