Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[crypto] Return a NULL X.509 certificate if construction fails
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed May 21, 2012
1 parent f20c374 commit c923d57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crypto/x509.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit c923d57

Please sign in to comment.