Skip to content

Commit

Permalink
align X509_SIG_INFO initialization with OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel40791765 committed Jun 4, 2024
1 parent 2ee6721 commit ad76563
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crypto/x509/v3_purp.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,11 @@ int x509v3_cache_extensions(X509 *x) {
break;
}
}
if (!x509_init_signature_info(x)) {
x->ex_flags |= EXFLAG_INVALID;
}

// Set x->sig_info. Errors here are ignored so that we have emit similar
// errors to OpenSSL, instead of failing early.
(void)x509_init_signature_info(x);

x->ex_flags |= EXFLAG_SET;

CRYPTO_MUTEX_unlock_write(&x->lock);
Expand Down

0 comments on commit ad76563

Please sign in to comment.