]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix potential memory leak in BIO_get_accept_socket()
authorNiels Dossche <niels.dossche@ugent.be>
Mon, 28 Oct 2024 15:34:55 +0000 (16:34 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 2 Jan 2025 13:07:32 +0000 (14:07 +0100)
commit609bc44f14e4ee3a07ae8b3ecedc4adf88b03c86
tree570b8a70411568fedb05f8bf2a4835a8c746740c
parent29a4dc665bfa6794f679fd1c2042f33e50fa8946
Fix potential memory leak in BIO_get_accept_socket()

When BIO_parse_hostserv() fails it may still have allocated memory, yet
this memory is not freed. Fix it by jumping to the err label.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25817)

(cherry picked from commit 32476957ead4151dceaf873306fc7e79cd262812)
crypto/bio/bio_addr.c
crypto/bio/bio_sock.c