Browse Source

[crypto] Return a NULL OCSP check if construction fails

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
b278094902
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/crypto/ocsp.c

+ 1
- 0
src/crypto/ocsp.c View File

@@ -217,6 +217,7 @@ int ocsp_check ( struct x509_certificate *cert,
217 217
  err_request:
218 218
 	ocsp_put ( *ocsp );
219 219
  err_alloc:
220
+	*ocsp = NULL;
220 221
 	return rc;
221 222
 }
222 223
 

Loading…
Cancel
Save