]> 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:26 +0000 (18:14 +0100)
commit47ca80d96ed6242e06a02a7beda9c59759e408e3
tree17317c2e4d0428531124bfb4025c3d021e04f5a8
parentdd851c0ea09c6b0b65cacda274b4655023868c38
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