]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_stir_shaken: fix memory free crash when Asterisk is built with malloc_debug
authorMike Bradeen <mbradeen@sangoma.com>
Wed, 6 May 2026 22:33:43 +0000 (16:33 -0600)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 11 May 2026 15:01:36 +0000 (15:01 +0000)
commita95b21c556dc344cfafcafa83ee688daa4400b98
tree05332ee7a0fe1a95ee23661587363a6e765be8c6
parentf3a64f705e1c447201e3ba5bf9a4e13cdb4d0a92
res_stir_shaken: fix memory free crash when Asterisk is built with malloc_debug

crypto_utils uses ast_asprintf to allocate the search string when checking the
certificate subject, but was not using ast_free to free it. This caused a crash
when Asterisk was built with malloc_debug

Resolves: #1921
res/res_stir_shaken/crypto_utils.c