From b27809490207e02647add54288ec2c3ce2e4da50 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 21 May 2012 23:01:29 +0100 Subject: [PATCH] [crypto] Return a NULL OCSP check if construction fails Signed-off-by: Michael Brown --- src/crypto/ocsp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crypto/ocsp.c b/src/crypto/ocsp.c index 7dca281f4..58b987d42 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; }