From 0d0fc27e429e8fe4a3ac7744a92960bfc2f40ded Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 26 Jun 2013 11:16:17 -0700 Subject: [PATCH] Fixed DecodeAuthKeyId fail case not returning. --- ctaocrypt/src/asn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ctaocrypt/src/asn.c b/ctaocrypt/src/asn.c index 9e77b011c..140e436cb 100644 --- a/ctaocrypt/src/asn.c +++ b/ctaocrypt/src/asn.c @@ -2532,6 +2532,8 @@ static void DecodeAuthInfo(byte* input, int sz, DecodedCert* cert) int length = 0; word32 oid; + CYASSL_ENTER("DecodeAuthInfo"); + /* Unwrap the list of AIAs */ if (GetSequence(input, &idx, &length, sz) < 0) return; @@ -2583,6 +2585,7 @@ static void DecodeAuthKeyId(byte* input, int sz, DecodedCert* cert) if (input[idx++] != (ASN_CONTEXT_SPECIFIC | 0)) { CYASSL_MSG("\tfail: wanted OPTIONAL item 0, not available\n"); + return; } if (GetLength(input, &idx, &length, sz) < 0) {