From ac1890922b05f5007c94d52b877481fbf8309237 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 12 Dec 2012 08:53:51 -0800 Subject: [PATCH] removed unused variable from lookup cert --- src/ocsp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ocsp.c b/src/ocsp.c index ff4067f6f..343b98c5b 100644 --- a/src/ocsp.c +++ b/src/ocsp.c @@ -457,7 +457,6 @@ int CyaSSL_OCSP_Lookup_Cert(CYASSL_OCSP* ocsp, DecodedCert* cert) byte ocspReqBuf[SCRATCH_BUFFER_SIZE]; int ocspReqSz = SCRATCH_BUFFER_SIZE; byte* ocspRespBuf = NULL; - int ocspRespSz = 0; OcspRequest ocspRequest; OcspResponse ocspResponse; int result = 0; @@ -509,7 +508,7 @@ int CyaSSL_OCSP_Lookup_Cert(CYASSL_OCSP* ocsp, DecodedCert* cert) if (result < 0) return result; /* If the transaction failed, return that result. */ - InitOcspResponse(&ocspResponse, certStatus, ocspRespBuf, ocspRespSz); + InitOcspResponse(&ocspResponse, certStatus, ocspRespBuf, result); OcspResponseDecode(&ocspResponse); if (ocspResponse.responseStatus != OCSP_SUCCESSFUL) {