Fix asn1.c:print_tags_recursive

This commit is contained in:
carblue 2019-10-02 12:37:01 +02:00 committed by Frank Morgner
parent 4ad55997e0
commit 5dd9fcb25c
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ static void print_tags_recursive(const u8 * buf0, const u8 * buf,
size_t 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");
return;
}