]> git.ipfire.org Git - thirdparty/asterisk.git/commit
tcptls: Prevent crash when freeing OpenSSL errors.
authorNaveen Albert <asterisk@phreaknet.org>
Thu, 27 Oct 2022 11:32:12 +0000 (11:32 +0000)
committerJoshua Colp <jcolp@sangoma.com>
Tue, 1 Nov 2022 11:31:40 +0000 (06:31 -0500)
commite553546eff7f7541e9ef61e2ccb9182acd46d455
tree0f8c4d31c45d2e79ae2ab66db133876e9002f569
parentd7dae7b1fcc177d37e57a3013291a06fdae19eee
tcptls: Prevent crash when freeing OpenSSL errors.

write_openssl_error_to_log has been erroneously
using ast_free instead of free, which will
cause a crash when MALLOC_DEBUG is enabled since
the memory was not allocated by Asterisk's memory
manager. This changes it to use the actual free
function directly to avoid this.

ASTERISK-30278 #close

Change-Id: Iac8b6468b718075809c45d8ad16b101af21a474d
main/tcptls.c