[Asterisk-code-review] res_ari_channels: Fixed endpoint 80 characters limit (asterisk[master])

sungtae kim asteriskteam at digium.com
Wed Apr 22 04:12:15 CDT 2020


sungtae kim has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/14279 )

Change subject: res_ari_channels: Fixed endpoint 80 characters limit
......................................................................


Patch Set 2:

(3 comments)

Fixed it. 😊

https://gerrit.asterisk.org/c/asterisk/+/14279/2/res/ari/resource_channels.c 
File res/ari/resource_channels.c:

https://gerrit.asterisk.org/c/asterisk/+/14279/2/res/ari/resource_channels.c@1119 
PS2, Line 1119: 		dialdevice = ast_strdupa(stuff);
> Rather than allocating and copying the data.  Just assign dialdevice with stuff. […]
Good, I agree with this too.


https://gerrit.asterisk.org/c/asterisk/+/14279/2/res/ari/resource_channels.c@1829 
PS2, Line 1829: 		dialdevice = ast_strdupa(stuff);
> same here […]
Np, fixed it.


https://gerrit.asterisk.org/c/asterisk/+/14279/2/res/ari/resource_channels.c@1832 
PS2, Line 1832: 	originator = ast_channel_get_by_name(args->originator);
> Missing a sanity check before this line just like in ari_channels_handle_originate_with_id(). […]
Indeed. Fixed it.

And added sanity checks, this will prevent the NULL string use in the save_dialstring().



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14279
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I91b5f6708a1200363f3267b847dd6a0915222c25
Gerrit-Change-Number: 14279
Gerrit-PatchSet: 2
Gerrit-Owner: sungtae kim <pchero21 at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-CC: Sean Bright <sean.bright at gmail.com>
Gerrit-Comment-Date: Wed, 22 Apr 2020 09:12:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Richard Mudgett <rmudgett at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200422/ed733a4a/attachment.html>


More information about the asterisk-code-review mailing list