From: Andrey Volk Date: Thu, 1 Apr 2021 13:14:06 +0000 (+0300) Subject: [mod_spandsp] scan-build: Argument with 'nonnull' attribute passed null in udptl_rx_p... X-Git-Tag: v1.10.7^2~261 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb150bc4863e4df7a81827b1f09af581916623c0;p=thirdparty%2Ffreeswitch.git [mod_spandsp] scan-build: Argument with 'nonnull' attribute passed null in udptl_rx_packet() --- diff --git a/src/mod/applications/mod_spandsp/udptl.c b/src/mod/applications/mod_spandsp/udptl.c index 50a996903a..aa82f953d0 100644 --- a/src/mod/applications/mod_spandsp/udptl.c +++ b/src/mod/applications/mod_spandsp/udptl.c @@ -296,7 +296,7 @@ int udptl_rx_packet(udptl_state_t *s, const uint8_t buf[], int len) return -1; /* Save the new FEC data */ - if (s->rx[x].fec_len[i]) + if (s->rx[x].fec_len[i] && data) memcpy(s->rx[x].fec[i], data, s->rx[x].fec_len[i]); #if 0 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "FEC: ");