]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_spandsp] scan-build: Argument with 'nonnull' attribute passed null in udptl_rx_p...
authorAndrey Volk <andywolk@gmail.com>
Thu, 1 Apr 2021 13:14:06 +0000 (16:14 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 19 Oct 2021 17:15:59 +0000 (20:15 +0300)
src/mod/applications/mod_spandsp/udptl.c

index 50a996903ae91769fee0c605c14f23b4a03e122a..aa82f953d016a0bd521d23a0eada89ca68562663 100644 (file)
@@ -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: ");