]> 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)
committerN A <asterisk@phreaknet.org>
Mon, 31 Oct 2022 12:55:00 +0000 (07:55 -0500)
commit2e75f2c84554df1a954dabef63d3e5ada04f6262
tree8fa13f9dff3d58f078523f8e1408fc788b71a254
parent39899774023ff4e9f45c81c26fd9a8dedcc66e86
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