diff options
author | tb <> | 2024-01-09 07:25:57 +0000 |
---|---|---|
committer | tb <> | 2024-01-09 07:25:57 +0000 |
commit | 07e4a65c6531f89f40ce731f11090bc168df2576 (patch) | |
tree | d80e9cbc654fe1e82b911d1027281beac58c223e /src/lib | |
parent | c390b3b10d74554b4ac407b54a53224bf34f4f9c (diff) | |
download | openbsd-07e4a65c6531f89f40ce731f11090bc168df2576.tar.gz openbsd-07e4a65c6531f89f40ce731f11090bc168df2576.tar.bz2 openbsd-07e4a65c6531f89f40ce731f11090bc168df2576.zip |
Fix copy-paste error that broke openssl-ruby and openssl regress
Noticed by anton
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index 3d6b68afee..ada8ec1248 100644 --- a/src/lib/libcrypto/x509/x509_vfy.c +++ b/src/lib/libcrypto/x509/x509_vfy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_vfy.c,v 1.137 2024/01/08 10:06:50 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.c,v 1.138 2024/01/09 07:25:57 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -2190,7 +2190,7 @@ x509_vfy_purpose_inherit(X509_STORE_CTX *ctx, int purpose, int trust) | |||
2190 | const X509_PURPOSE *purp; | 2190 | const X509_PURPOSE *purp; |
2191 | int purpose_idx; | 2191 | int purpose_idx; |
2192 | 2192 | ||
2193 | if (purpose < X509_PURPOSE_MIN || purpose > X509_TRUST_MAX) { | 2193 | if (purpose < X509_PURPOSE_MIN || purpose > X509_PURPOSE_MAX) { |
2194 | X509error(X509_R_UNKNOWN_PURPOSE_ID); | 2194 | X509error(X509_R_UNKNOWN_PURPOSE_ID); |
2195 | return 0; | 2195 | return 0; |
2196 | } | 2196 | } |