]> 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)
committerGeorge Joseph <gjoseph@sangoma.com>
Thu, 25 Jul 2024 14:14:09 +0000 (14:14 +0000)
commitb10ea037926c1b31160f998f4c77d60bc3d28a28
treefc41dc1852549837e8826f3c4eca794bc6df20cc
parent2fb3215f031325c4ffb213f5d475771b6b45a849
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