X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fasn1%2Ftasn_dec.c;h=64518ee24e213fb3e86e2c53c01db84e8118d15f;hp=aad838a083003a8cecb7e8f7fac896b2f7c1e8c3;hb=bace847eae24f48adc6a967c6cce7f8d05bbeda3;hpb=4e3d2866b6e8e7a700ea22e05840a093bfd7a4b1 diff --git a/crypto/asn1/tasn_dec.c b/crypto/asn1/tasn_dec.c index aad838a083..64518ee24e 100644 --- a/crypto/asn1/tasn_dec.c +++ b/crypto/asn1/tasn_dec.c @@ -301,6 +301,8 @@ static int asn1_item_embed_d2i(ASN1_VALUE **pval, const unsigned char **in, const ASN1_TEMPLATE *seqtt; ASN1_VALUE **pseqval; seqtt = asn1_do_adb(pval, tt, 1); + if (!seqtt) + continue; pseqval = asn1_get_field_ptr(pval, seqtt); asn1_template_free(pseqval, seqtt); }