[crypto] Return a NULL OCSP check if construction fails

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/6/head
Michael Brown 2012-05-21 23:01:29 +01:00
parent c923d57663
commit b278094902
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ int ocsp_check ( struct x509_certificate *cert,
err_request: err_request:
ocsp_put ( *ocsp ); ocsp_put ( *ocsp );
err_alloc: err_alloc:
*ocsp = NULL;
return rc; return rc;
} }