mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-14 18:39:40 +00:00
Always check that the value returned by asn1_do_adb() is non-NULL
Reviewed-by: Stephen Henson <steve@openssl.org> Reviewed-by: Emilia Käsper <emilia@openssl.org> (cherry picked from commit bace847eae24f48adc6a967c6cce7f8d05bbeda3)
This commit is contained in:
parent
95fb422ace
commit
a9b2346524
@ -401,6 +401,8 @@ int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,
|
|||||||
const ASN1_TEMPLATE *seqtt;
|
const ASN1_TEMPLATE *seqtt;
|
||||||
ASN1_VALUE **pseqval;
|
ASN1_VALUE **pseqval;
|
||||||
seqtt = asn1_do_adb(pval, tt, 1);
|
seqtt = asn1_do_adb(pval, tt, 1);
|
||||||
|
if (!seqtt)
|
||||||
|
continue;
|
||||||
pseqval = asn1_get_field_ptr(pval, seqtt);
|
pseqval = asn1_get_field_ptr(pval, seqtt);
|
||||||
ASN1_template_free(pseqval, seqtt);
|
ASN1_template_free(pseqval, seqtt);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user