<p>Guido Falsi has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14325">View Change</a></p><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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/25/14325/1</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 9e5f04b..e8b71c7 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -6668,7 +6668,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/+/14325">change 14325</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/+/14325"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I381718893b80599ab8635f2b594a10c1000d595e </div>
<div style="display:none"> Gerrit-Change-Number: 14325 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Guido Falsi <madpilot@freebsd.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>