Make ASN1_TYPE_get() work for V_ASN1_NULL type.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 4 Dec 2002 00:49:46 +0000 (00:49 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 4 Dec 2002 00:49:46 +0000 (00:49 +0000)
crypto/asn1/a_type.c

index 96e111c..fe3fcd4 100644 (file)
@@ -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);