From 716b2079dc8f998a842bd668faaecc89cde45a4d Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 4 Dec 2002 00:49:46 +0000 Subject: [PATCH] Make ASN1_TYPE_get() work for V_ASN1_NULL type. --- crypto/asn1/a_type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/asn1/a_type.c b/crypto/asn1/a_type.c index 96e111cf23..fe3fcd40b0 100644 --- a/crypto/asn1/a_type.c +++ b/crypto/asn1/a_type.c @@ -62,7 +62,7 @@ int ASN1_TYPE_get(ASN1_TYPE *a) { - if (a->value.ptr != NULL) + if ((a->value.ptr != NULL) || (a->type == V_ASN1_NULL)) return(a->type); else return(0); -- 2.34.1