[Asterisk-code-review] res_rtp_asterisk: Protect access to nochecksums with #ifdef (asterisk[13])

Guido Falsi asteriskteam at digium.com
Sun Apr 26 05:58:50 CDT 2020


Guido Falsi has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14325 )


Change subject: res_rtp_asterisk: Protect access to nochecksums with #ifdef
......................................................................

res_rtp_asterisk: Protect access to nochecksums with #ifdef

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.

ASTERISK-28852 #close

Change-Id: I381718893b80599ab8635f2b594a10c1000d595e
---
M res/res_rtp_asterisk.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/25/14325/1

diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 9e5f04b..e8b71c7 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -6668,7 +6668,9 @@
 	ast_cli(a->fd, "----------------\n");
 	ast_cli(a->fd, "  Port start:      %d\n", rtpstart);
 	ast_cli(a->fd, "  Port end:        %d\n", rtpend);
+#ifdef SO_NO_CHECK
 	ast_cli(a->fd, "  Checksums:       %s\n", AST_CLI_YESNO(nochecksums == 0));
+#endif
 	ast_cli(a->fd, "  DTMF Timeout:    %d\n", dtmftimeout);
 	ast_cli(a->fd, "  Strict RTP:      %s\n", AST_CLI_YESNO(strictrtp));
 

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

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: I381718893b80599ab8635f2b594a10c1000d595e
Gerrit-Change-Number: 14325
Gerrit-PatchSet: 1
Gerrit-Owner: Guido Falsi <madpilot at freebsd.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200426/cb0d3038/attachment.html>


More information about the asterisk-code-review mailing list