check correct pointer before freeing when done looking up cert

pull/1/head
John Safranek 2012-12-07 15:49:43 -08:00
parent 87fbf7df80
commit e925fbdbd6
1 changed files with 1 additions and 1 deletions

View File

@ -526,7 +526,7 @@ int CyaSSL_OCSP_Lookup_Cert(CYASSL_OCSP* ocsp, DecodedCert* cert)
result = OCSP_LOOKUP_FAIL;
}
}
if (ocspReqBuf != NULL) {
if (ocspRespBuf != NULL) {
XFREE(ocspRespBuf, NULL, DYNAMIC_TYPE_IN_BUFFER);
}