]> 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)
committerGeorge Joseph <gjoseph@sangoma.com>
Thu, 10 Jul 2025 15:07:15 +0000 (15:07 +0000)
commit7a43fbed726516db06949f466b21d5c9b4d4aa97
tree160152f3dac2741c6a6cb70075e30f22b5213f4a
parent9bef59f44daa0587a19eb8feba8c9d7de25271cd
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