]> 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:23:06 +0000 (10:23 -0500)
commit6d6c68ac37e626b7b448ab467828b413a5eda31d
tree9f0e377e563707aa58fa041547c45d5547f57bfe
parenta2eb7d2a2cd234b7bf1f1c6633e8b13455a6e004
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