]> 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 15:20:49 +0000 (09:20 -0600)
commit95e5c909489016684706c80cab00372a02c69446
treeee977d812e5edad171927495e4007038011f85be
parent6b6025ac508ef1845454cb60256cfa8dcc3353af
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