]> 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)
committerBen Ford <bford@sangoma.com>
Thu, 10 Jul 2025 15:26:54 +0000 (10:26 -0500)
commit4b3ce10af14083eb257c75b038c4f3698f2d1996
treeac94977fd09fbe1f370a7b93e7639d0f17ab5c40
parentc440b1203f7d39204e869fe70cf1864efcc0c671
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