<p>Joshua Colp <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14312">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Benjamin Keith Ford: Looks good to me, approved
George Joseph: Looks good to me, but someone else must approve
Joshua Colp: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_rtp_asterisk: Protect access to nochecksums with #ifdef<br><br>Recently code accessing nochecksums variable has been added without including #ifdef SO_NO_CHECK protection, while the variable is created only when such constant is defined.<br><br>ASTERISK-28852 #close<br><br>Change-Id: I381718893b80599ab8635f2b594a10c1000d595e<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c</span><br><span>index 75be561..3bcfada 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -8868,7 +8868,9 @@</span><br><span> ast_cli(a->fd, "----------------\n");</span><br><span> ast_cli(a->fd, " Port start: %d\n", rtpstart);</span><br><span> ast_cli(a->fd, " Port end: %d\n", rtpend);</span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef SO_NO_CHECK</span><br><span> ast_cli(a->fd, " Checksums: %s\n", AST_CLI_YESNO(nochecksums == 0));</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span> ast_cli(a->fd, " DTMF Timeout: %d\n", dtmftimeout);</span><br><span> ast_cli(a->fd, " Strict RTP: %s\n", AST_CLI_YESNO(strictrtp));</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14312">change 14312</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/14312"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I381718893b80599ab8635f2b594a10c1000d595e </div>
<div style="display:none"> Gerrit-Change-Number: 14312 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Guido Falsi <madpilot@freebsd.org> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>