]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channelstorage_cpp_map_name_id: Fix callback returning non-matching channels.
authorGeorge Joseph <gjoseph@sangoma.com>
Wed, 9 Jul 2025 17:14:55 +0000 (11:14 -0600)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 10 Jul 2025 15:07:21 +0000 (15:07 +0000)
commit0086f4a0b8b7d2f33ba247cc287857f61b5557af
tree48fa9b09cb243ad10cda81355a857e7896bee776
parent9e7788ad21e83d7eb2581b899e568e4e01429b25
channelstorage_cpp_map_name_id: Fix callback returning non-matching channels.

When the callback() API was invoked but no channel passed the test, callback
would return the last channel tested instead of NULL.  It now correctly
returns NULL when no channel matches.

Resolves: #1288
main/channelstorage_cpp_map_name_id.cc