[openssl/openssl] 8b5424: eckey_priv_encode(): Call ASN1_STRING_free() only ...

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


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 8b5424eae5577809264e73a229fcc4c384611fae
      https://github.com/openssl/openssl/commit/8b5424eae5577809264e73a229fcc4c384611fae
  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)




More information about the openssl-commits mailing list