]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rtp_engine.c: Prevent segfault in ast_rtp_codecs_payloads_unset()
authorGeorge Joseph <gjoseph@sangoma.com>
Thu, 25 Jul 2024 12:53:43 +0000 (06:53 -0600)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Thu, 25 Jul 2024 14:14:12 +0000 (14:14 +0000)
commitcee50bab7a1c0372c663fc1542533490cabe6dbc
treea3fd31449fc28c48bcb00a1b92f514c29d075329
parenta02fc685a8a6cd09b8f27018a330eaf338029fbf
rtp_engine.c: Prevent segfault in ast_rtp_codecs_payloads_unset()

There can be empty slots in payload_mapping_tx corresponding to
dynamic payload types that haven't been seen before so we now
check for NULL before attempting to use 'type' in the call to
ast_format_cmp.

Note: Currently only chan_sip calls ast_rtp_codecs_payloads_unset()

Resolves: #822
main/rtp_engine.c