[Asterisk-code-review] res_pjsip_header_funcs: Add PJSIP_HEADERS() ability to read header by... (asterisk[master])
Alexei Gradinari
asteriskteam at digium.com
Tue Apr 27 14:09:05 CDT 2021
Alexei Gradinari has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/15761 )
Change subject: res_pjsip_header_funcs: Add PJSIP_HEADERS() ability to read header by pattern
......................................................................
Patch Set 3: Code-Review-1
(2 comments)
https://gerrit.asterisk.org/c/asterisk/+/15761/3/res/res_pjsip_header_funcs.c
File res/res_pjsip_header_funcs.c:
https://gerrit.asterisk.org/c/asterisk/+/15761/3/res/res_pjsip_header_funcs.c@311
PS3, Line 311: p
1. The size of the buffer should be data->len - 1
2. Need to check pj_hdr_string_len != -1, as pjsip_hdr_print_on returns -1 if there's not enough space.
https://gerrit.asterisk.org/c/asterisk/+/15761/3/res/res_pjsip_header_funcs.c@344
PS3, Line 344: if (!hdr) {
should check wlen instead of hdr
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/15761
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ic09d395de71a0021e0d6c5c29e1e19d689079f8b
Gerrit-Change-Number: 15761
Gerrit-PatchSet: 3
Gerrit-Owner: Igor Goncharovsky <igor.goncharovsky at gmail.com>
Gerrit-Reviewer: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Comment-Date: Tue, 27 Apr 2021 19:09:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210427/ba2186eb/attachment.html>
More information about the asterisk-code-review
mailing list