]> 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)
commit08e19d081525bbc7d589fab2b3ef45cdacdd5e15
treed548f58595c81d2d91e5cacac084aeb6ccb3e69a
parentb333ee3be7b08e17fea78838b58380308659e23c
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