From 8d4d9ebe12367b22f92a2443af86ac03f7367147 Mon Sep 17 00:00:00 2001 From: toddouska Date: Tue, 3 Nov 2015 11:30:56 -0800 Subject: [PATCH] fix jenkins ec 56 --- wolfcrypt/src/asn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index eecb57ba7..fa3471cd7 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -8673,7 +8673,7 @@ static int DecodeBasicOcspResponse(byte* source, word32* ioIndex, int length; word32 idx = *ioIndex; word32 end_index; - int ret; + int ret = -1; WOLFSSL_ENTER("DecodeBasicOcspResponse"); @@ -8733,10 +8733,11 @@ static int DecodeBasicOcspResponse(byte* source, word32* ioIndex, Signer* ca = GetCA(cm, resp->issuerHash); if (ca) + { ret = ConfirmSignature(resp->response, resp->responseSz, ca->publicKey, ca->pubKeySize, ca->keyOID, resp->sig, resp->sigSz, resp->sigOID, NULL); - + } if (!ca || ret == 0) { WOLFSSL_MSG("\tOCSP Confirm signature failed");