Fix a similar memory leak in SXNET_add_id_INTEGER
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 9 Jan 2024 14:05:30 +0000 (15:05 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 10 Jan 2024 17:16:19 +0000 (18:16 +0100)
commit0d3775cf11137c33dcbd30e89194d16019bf60e6
tree5bacb40604b57edad5a298a9595f0132d96b1367
parent5339f541238aab81e3dd43f2bc6c5cde716be349
Fix a similar memory leak in SXNET_add_id_INTEGER

Even in the good case there was memory leak here.
Add a simple test case to have at least some test coverage.

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 398011848468c7e8e481b295f7904afc30934217)
crypto/x509/v3_sxnet.c
test/recipes/25-test_req.t