summaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorMichael Brown2012-05-22 00:01:29 +0200
committerMichael Brown2012-05-22 00:21:37 +0200
commitb27809490207e02647add54288ec2c3ce2e4da50 (patch)
tree0a48072b2c7651458107d5db828c794e1ef4a175 /src/crypto
parent[crypto] Return a NULL X.509 certificate if construction fails (diff)
downloadipxe-b27809490207e02647add54288ec2c3ce2e4da50.tar.gz
ipxe-b27809490207e02647add54288ec2c3ce2e4da50.tar.xz
ipxe-b27809490207e02647add54288ec2c3ce2e4da50.zip
[crypto] Return a NULL OCSP check if construction fails
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/ocsp.c1
1 files changed, 1 insertions, 0 deletions
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;
}