]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 31 Oct 2022 17:49:27 +0000 (12:49 -0500)
commite0d243396fc9b2fa60fd4c4e3c20e3709e36a96e
tree0238513d2f4b9ea9285dfd1629b69a73522b10f9
parent7eaa7b0b95aeeecc89d2c3686142f19286b04f8d
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