david/ipxe
Archived
1
0

[crypto] Return a NULL X.509 certificate if construction fails

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2012-05-21 23:00:08 +01:00
parent f20c3742e7
commit c923d57663

View File

@ -1068,6 +1068,7 @@ int x509_certificate ( const void *data, size_t len,
/* Parse certificate */
if ( ( rc = x509_parse ( *cert, &cursor ) ) != 0 ) {
x509_put ( *cert );
*cert = NULL;
return rc;
}