]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[crypto] Return a NULL OCSP check if construction fails
authorMichael Brown <mcb30@ipxe.org>
Mon, 21 May 2012 22:01:29 +0000 (23:01 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 21 May 2012 22:21:37 +0000 (23:21 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/crypto/ocsp.c

index 7dca281f492ff9708ad1802eff4c2fef987eecab..58b987d429c22f3dff197350df00fe8eaaac0017 100644 (file)
@@ -217,6 +217,7 @@ int ocsp_check ( struct x509_certificate *cert,
  err_request:
        ocsp_put ( *ocsp );
  err_alloc:
+       *ocsp = NULL;
        return rc;
 }