From 43ae3c9f599a412d255410f53d3028d096be2493 Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Sat, 20 May 2017 12:41:45 +0900 Subject: [PATCH] ASN_PARSE_E in GetASNInt --- wolfcrypt/src/asn.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 4bc07befb..edf666f47 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -364,8 +364,6 @@ static int GetASNInt(const byte* input, word32* inOutIdx, int* len, if (*len > 0 && (input[*inOutIdx] & 0x80) == 0) return ASN_PARSE_E; } - else if ((input[*inOutIdx] & 0x80) == 0x80) - return ASN_PARSE_E; } return 0;