From: Michael Brown Date: Mon, 21 May 2012 22:01:29 +0000 (+0100) Subject: [crypto] Return a NULL OCSP check if construction fails X-Git-Tag: v1.20.1~1779 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b27809490207e02647add54288ec2c3ce2e4da50;p=thirdparty%2Fipxe.git [crypto] Return a NULL OCSP check if construction fails Signed-off-by: Michael Brown --- 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; }