]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a possible memory leak in sxnet_v2i
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 8 Jan 2024 14:31:32 +0000 (15:31 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 10 Jan 2024 17:14:37 +0000 (18:14 +0100)
commit5339f541238aab81e3dd43f2bc6c5cde716be349
treefd7e10b19b1833d4b2569105d7048319d6142a49
parentbee1e83a18d6820b4264cbefca9ff5576ff679c2
Fix a possible memory leak in sxnet_v2i

When a subsequent call to SXNET_add_id_asc fails
e.g. because user is a string larger than 64 char
or the zone is a duplicate zone id,
or the zone is not an integer,
a memory leak may be the result.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23234)

(cherry picked from commit 0151e772195fc03cce0f12e5e266e51dc15243a0)
crypto/x509/v3_sxnet.c