]> 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:06:51 +0000 (14:06 +0100)
commit32476957ead4151dceaf873306fc7e79cd262812
treed8eefcef5c75f61333800075a1362ea9c081c569
parent0baa3ac736520c9457c5ef05614fdd54b8dc5515
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)
crypto/bio/bio_addr.c
crypto/bio/bio_sock.c