From a6ee8fe26a3d327eb40150a35abd6f5847de7760 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 4 Dec 2002 00:50:20 +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.25.1