[openssl/openssl] 667ece: eckey_priv_encode(): Call ASN1_STRING_free() only ...

Tomáš Mráz noreply at github.com
Tue Oct 11 14:52:40 UTC 2022


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 667ece5ed08b0556e55bf8708a940ce962014100
      https://github.com/openssl/openssl/commit/667ece5ed08b0556e55bf8708a940ce962014100
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2022-10-11 (Tue, 11 Oct 2022)

  Changed paths:
    M crypto/ec/ec_ameth.c

  Log Message:
  -----------
  eckey_priv_encode(): Call ASN1_STRING_free() only on an ASN1_STRING

Also ASN1_OBJECT_free() never needs to be called on objects returned
from OBJ_nid2obj().

Fixes #19138

Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19367)

(cherry picked from commit 8b5424eae5577809264e73a229fcc4c384611fae)




More information about the openssl-commits mailing list