]> 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:10:56 +0000 (14:10 +0100)
commitadd0facc81261f2de97a6a4b487a7d0d6a1737bf
treee4d17abe72713ea3e3f02c52cce1c15e4722c4f5
parentfd43169b1926a75ff34cd1188bdaac35f5fa21c5
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