X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fasn1%2Fa_type.c;h=fe3fcd40b0b24be71bb4afdd06d7433ae3b72b24;hb=5e42f9ab46c35f1c1a634619816d0bce88c2719c;hp=96e111cf237b6b22cd031f0acde2d158b99a72db;hpb=9d6b1ce6441c7cc6aed344f02d9f676ab5e04217;p=oweals%2Fopenssl.git 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);