]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channelstorage_cpp: Fix fallback return value in channelstorage callback
authorphoneben <3232963@gmail.com>
Wed, 26 Nov 2025 12:00:21 +0000 (14:00 +0200)
committerphoneben <3232963@gmail.com>
Mon, 1 Dec 2025 15:33:54 +0000 (15:33 +0000)
commitdcb8b505f780d53801d362fb9bf93504af366e56
treef2beb638b88e51b7447a218fea8b8068103f5d1f
parent1f47f6a836889ad7d12ef4211acecf890c96a28b
channelstorage_cpp: Fix fallback return value in channelstorage callback

callback returned the last iterated channel when no match existed, causing invalid channel references and potential double frees. Updated to correctly return NULL when there is no match.

Resolves: #1609
main/channelstorage_cpp_map_name_id.cc