[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Matt Caswell matt at openssl.org
Tue Aug 14 13:00:01 UTC 2018


The branch OpenSSL_1_0_2-stable has been updated
       via  2d2fe4244eb554c9f5d3841830d0be3c7e16fb86 (commit)
      from  c24e2f1891c147be3c6e277cf09f2bee486a7812 (commit)


- Log -----------------------------------------------------------------
commit 2d2fe4244eb554c9f5d3841830d0be3c7e16fb86
Author: Richard Levitte <levitte at openssl.org>
Date:   Tue Aug 14 14:52:49 2018 +0200

    i2d_ASN1_BOOLEAN(): correct error module
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/6957)

-----------------------------------------------------------------------

Summary of changes:
 crypto/asn1/a_bool.c   | 2 +-
 crypto/asn1/asn1.h     | 1 +
 crypto/asn1/asn1_err.c | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/crypto/asn1/a_bool.c b/crypto/asn1/a_bool.c
index 98454f3..3bf676e 100644
--- a/crypto/asn1/a_bool.c
+++ b/crypto/asn1/a_bool.c
@@ -71,7 +71,7 @@ int i2d_ASN1_BOOLEAN(int a, unsigned char **pp)
 
     if (*pp == NULL) {
         if ((p = allocated = OPENSSL_malloc(r)) == NULL) {
-            ASN1err(ASN1_F_I2D_ASN1_OBJECT, ERR_R_MALLOC_FAILURE);
+            ASN1err(ASN1_F_I2D_ASN1_BOOLEAN, ERR_R_MALLOC_FAILURE);
             return 0;
         }
     } else {
diff --git a/crypto/asn1/asn1.h b/crypto/asn1/asn1.h
index 0515292..36e79d5 100644
--- a/crypto/asn1/asn1.h
+++ b/crypto/asn1/asn1.h
@@ -1267,6 +1267,7 @@ void ERR_load_ASN1_strings(void);
 # define ASN1_F_D2I_X509_PKEY                             159
 # define ASN1_F_DO_BUF                                    221
 # define ASN1_F_I2D_ASN1_BIO_STREAM                       211
+# define ASN1_F_I2D_ASN1_BOOLEAN                          223
 # define ASN1_F_I2D_ASN1_OBJECT                           222
 # define ASN1_F_I2D_ASN1_SET                              188
 # define ASN1_F_I2D_ASN1_TIME                             160
diff --git a/crypto/asn1/asn1_err.c b/crypto/asn1/asn1_err.c
index 475e80a..9e273dc 100644
--- a/crypto/asn1/asn1_err.c
+++ b/crypto/asn1/asn1_err.c
@@ -168,6 +168,7 @@ static ERR_STRING_DATA ASN1_str_functs[] = {
     {ERR_FUNC(ASN1_F_D2I_X509_PKEY), "d2i_X509_PKEY"},
     {ERR_FUNC(ASN1_F_DO_BUF), "DO_BUF"},
     {ERR_FUNC(ASN1_F_I2D_ASN1_BIO_STREAM), "i2d_ASN1_bio_stream"},
+    {ERR_FUNC(ASN1_F_I2D_ASN1_BOOLEAN), "i2d_ASN1_BOOLEAN"},
     {ERR_FUNC(ASN1_F_I2D_ASN1_OBJECT), "i2d_ASN1_OBJECT"},
     {ERR_FUNC(ASN1_F_I2D_ASN1_SET), "i2d_ASN1_SET"},
     {ERR_FUNC(ASN1_F_I2D_ASN1_TIME), "I2D_ASN1_TIME"},


More information about the openssl-commits mailing list