diff options
| author | tb <> | 2021-03-19 18:52:14 +0000 |
|---|---|---|
| committer | tb <> | 2021-03-19 18:52:14 +0000 |
| commit | c240a6035f817bd2937ea304396fea4e7404f3ce (patch) | |
| tree | 1621abf052c53c31b31fcbc37ce87a73a3e7f7d3 /src | |
| parent | 2ae24cd98259982f745f2428534a13181d0c9256 (diff) | |
| download | openbsd-c240a6035f817bd2937ea304396fea4e7404f3ce.tar.gz openbsd-c240a6035f817bd2937ea304396fea4e7404f3ce.tar.bz2 openbsd-c240a6035f817bd2937ea304396fea4e7404f3ce.zip | |
Fix copy-paste error in previous
Found the hard way by lists y42 org via an OCSP validation failure that
in turn caused pkg_add over TLS to fail. Detailed report by sthen.
ok sthen
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_purp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_purp.c b/src/lib/libcrypto/x509/x509_purp.c index 3b8bd6b81c..c81e043f9d 100644 --- a/src/lib/libcrypto/x509/x509_purp.c +++ b/src/lib/libcrypto/x509/x509_purp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_purp.c,v 1.3 2021/03/13 23:01:49 tobhe Exp $ */ | 1 | /* $OpenBSD: x509_purp.c,v 1.4 2021/03/19 18:52:14 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2001. | 3 | * project 2001. |
| 4 | */ | 4 | */ |
| @@ -571,7 +571,7 @@ x509v3_cache_extensions(X509 *x) | |||
| 571 | if (x->skid == NULL && i != -1) | 571 | if (x->skid == NULL && i != -1) |
| 572 | x->ex_flags |= EXFLAG_INVALID; | 572 | x->ex_flags |= EXFLAG_INVALID; |
| 573 | x->akid = X509_get_ext_d2i(x, NID_authority_key_identifier, &i, NULL); | 573 | x->akid = X509_get_ext_d2i(x, NID_authority_key_identifier, &i, NULL); |
| 574 | if (x->skid == NULL && i != -1) | 574 | if (x->akid == NULL && i != -1) |
| 575 | x->ex_flags |= EXFLAG_INVALID; | 575 | x->ex_flags |= EXFLAG_INVALID; |
| 576 | 576 | ||
| 577 | /* Does subject name match issuer? */ | 577 | /* Does subject name match issuer? */ |
