]> git.ipfire.org Git - thirdparty/openssl.git/commit
fix: reject adding a duplicity into STACK_OF(X509_ATTRIBUTE)
authorAdam Šulc <sulcadam12@gmail.com>
Thu, 20 Jul 2023 19:30:45 +0000 (21:30 +0200)
committerPauli <pauli@openssl.org>
Mon, 24 Jul 2023 02:44:46 +0000 (12:44 +1000)
commit7551264186f176ca5801aa84d60c7b91d8fba31f
treef8a18162ec5799b3e1dff6c7ed004c482216f39c
parent6cac1ce47128f5095b1f0b99f304589db034c305
fix: reject adding a duplicity into STACK_OF(X509_ATTRIBUTE)

Function `X509at_add1_attr()` (crypto/x509/x509_att.c) rejects to add a duplicity into `*x` but it searches in a wrong stack.

Changed to search in `*x`.

CLA: trivial

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21505)
crypto/x509/x509_att.c