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
  err_request:
217
  err_request:
218
 	ocsp_put ( *ocsp );
218
 	ocsp_put ( *ocsp );
219
  err_alloc:
219
  err_alloc:
220
+	*ocsp = NULL;
220
 	return rc;
221
 	return rc;
221
 }
222
 }
222
 
223
 

Loading…
Cancel
Save