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

Dr. Stephen Henson steve at openssl.org
Mon Jun 8 20:48:10 UTC 2015


The branch OpenSSL_1_0_2-stable has been updated
       via  34cdff92e97b3d65e8f1b6d60779107c99d3a931 (commit)
      from  05627d57e55517eae21c251fe287760bd1137218 (commit)


- Log -----------------------------------------------------------------
commit 34cdff92e97b3d65e8f1b6d60779107c99d3a931
Author: Dr. Stephen Henson <steve at openssl.org>
Date:   Mon Jun 8 13:23:00 2015 +0100

    return correct NID for undefined object
    
    Reviewed-by: Tim Hudson <tjh at openssl.org>
    (cherry picked from commit 0fb9990480919163cc375a2b6c0df1d8d901a77b)

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

Summary of changes:
 crypto/objects/obj_dat.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c
index 5ff1294..aca382a 100644
--- a/crypto/objects/obj_dat.c
+++ b/crypto/objects/obj_dat.c
@@ -417,6 +417,9 @@ int OBJ_obj2nid(const ASN1_OBJECT *a)
     if (a->nid != 0)
         return (a->nid);
 
+    if (a->length == 0)
+        return NID_undef;
+
     if (added != NULL) {
         ad.type = ADDED_DATA;
         ad.obj = (ASN1_OBJECT *)a; /* XXX: ugly but harmless */


More information about the openssl-commits mailing list