diff options
Diffstat (limited to 'src/lib/libcrypto')
| -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 94e9852fc6..8a5f6704a2 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.10 2021/10/23 11:53:24 tb Exp $ */ | 1 | /* $OpenBSD: x509_purp.c,v 1.11 2021/10/29 12:11:13 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 | */ |
| @@ -133,7 +133,7 @@ X509_check_purpose(X509 *x, int id, int ca) | |||
| 133 | x509v3_cache_extensions(x); | 133 | x509v3_cache_extensions(x); |
| 134 | CRYPTO_w_unlock(CRYPTO_LOCK_X509); | 134 | CRYPTO_w_unlock(CRYPTO_LOCK_X509); |
| 135 | if (x->ex_flags & EXFLAG_INVALID) | 135 | if (x->ex_flags & EXFLAG_INVALID) |
| 136 | return X509_V_ERR_UNSPECIFIED; | 136 | return -1; |
| 137 | } | 137 | } |
| 138 | if (id == -1) | 138 | if (id == -1) |
| 139 | return 1; | 139 | return 1; |
