Skip to content

Commit 11bdffc

Browse files
committed
fix-up 719d297
1 parent 250eced commit 11bdffc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pk/asn1/der/sequence/der_decode_sequence_flexi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static int _new_element(ltc_asn1_list **l)
8080
int der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc_asn1_list **out)
8181
{
8282
ltc_asn1_list *l, *t;
83-
unsigned long err, type, len, totlen, data_offset;
83+
unsigned long err, type, len, totlen, data_offset, len_len;
8484
void *realloc_tmp;
8585

8686
LTC_ARGCHK(in != NULL);
@@ -414,7 +414,7 @@ int der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc
414414
t = t->child;
415415
}
416416
if (len_len > LTC_DER_MAX_RECURSION) {
417-
err = CRYPT_PK_ASN1_ERROR;
417+
err = CRYPT_ERROR;
418418
goto error;
419419
}
420420

0 commit comments

Comments
 (0)