Fix asn1.c:print_tags_recursive
This commit is contained in:
parent
4ad55997e0
commit
5dd9fcb25c
|
@ -374,7 +374,7 @@ static void print_tags_recursive(const u8 * buf0, const u8 * buf,
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
r = sc_asn1_read_tag(&tagp, bytesleft, &cla, &tag, &len);
|
r = sc_asn1_read_tag(&tagp, bytesleft, &cla, &tag, &len);
|
||||||
if (r != SC_SUCCESS || tagp == NULL) {
|
if (r != SC_SUCCESS || (tagp == NULL && tag != SC_ASN1_TAG_EOC)) {
|
||||||
printf("Error in decoding.\n");
|
printf("Error in decoding.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue