[Asterisk-code-review] AMI: be less verbose when adding HTTP headers to AMI/HTTP me... (asterisk[13])
Sean Bright
asteriskteam at digium.com
Thu Aug 23 12:17:59 CDT 2018
Sean Bright has posted comments on this change. ( https://gerrit.asterisk.org/9970 )
Change subject: AMI: be less verbose when adding HTTP headers to AMI/HTTP messages.
......................................................................
Patch Set 7: Code-Review+1
(1 comment)
https://gerrit.asterisk.org/#/c/9970/6/main/manager.c
File main/manager.c:
https://gerrit.asterisk.org/#/c/9970/6/main/manager.c@2815
PS6, Line 2815: if (ast_asprintf((char**)&m->headers[m->hdrcount], "%s: %s", v->name, v->value) < 0) {
: continue;
> need to set m->headers[m->hdrcount] = NULL to
> be safe on failure.
m->hdrcount is not incremented on failure, so the slot will either be overwritten or unused.
--
To view, visit https://gerrit.asterisk.org/9970
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic45e673fde05bd544be95ad5cdbc69518207c1a1
Gerrit-Change-Number: 9970
Gerrit-PatchSet: 7
Gerrit-Owner: Jaco Kroon <jaco at uls.co.za>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jaco Kroon <jaco at uls.co.za>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-Comment-Date: Thu, 23 Aug 2018 17:17:59 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180823/20cd4df1/attachment.html>
More information about the asterisk-code-review
mailing list