diff --git a/src/crypto/ocsp.c b/src/crypto/ocsp.c index 7dca281f..58b987d4 100644 --- a/src/crypto/ocsp.c +++ b/src/crypto/ocsp.c @@ -217,6 +217,7 @@ int ocsp_check ( struct x509_certificate *cert, err_request: ocsp_put ( *ocsp ); err_alloc: + *ocsp = NULL; return rc; }