From: Guido Falsi Date: Sun, 26 Apr 2020 10:56:47 +0000 (+0200) Subject: res_rtp_asterisk: Protect access to nochecksums with #ifdef X-Git-Tag: 13.34.0-rc1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c74f229776b2c63ba93c2a4e50e303e54e2c573;p=thirdparty%2Fasterisk.git 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 --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 9e5f04b256..e8b71c7016 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -6668,7 +6668,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));