From e4366308e192a521aaf8f0d3da0c625308782f5e Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Sun, 26 Apr 2020 12:56:47 +0200 Subject: [PATCH] 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 --- res/res_rtp_asterisk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 75be5610f0..3bcfadac48 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -8868,7 +8868,9 @@ static char *handle_cli_rtp_settings(struct ast_cli_entry *e, int cmd, struct as 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));