diff options
author | tb <> | 2025-03-19 16:31:47 +0000 |
---|---|---|
committer | tb <> | 2025-03-19 16:31:47 +0000 |
commit | 2f175ec6cec1fb0437536a8f5be0f75bc9ca8380 (patch) | |
tree | 2b0ff3bfafa64e9a70180d6ba706246e4c0cacba | |
parent | ace869efd41274ef6314d1c01bb08680d5896b0e (diff) | |
download | openbsd-2f175ec6cec1fb0437536a8f5be0f75bc9ca8380.tar.gz openbsd-2f175ec6cec1fb0437536a8f5be0f75bc9ca8380.tar.bz2 openbsd-2f175ec6cec1fb0437536a8f5be0f75bc9ca8380.zip |
X509_VERIFY_PARAM_get0(): use consistent idiom for default_table access
ok jsing
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vpm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_vpm.c b/src/lib/libcrypto/x509/x509_vpm.c index 8a5eaa1328..ac79b83003 100644 --- a/src/lib/libcrypto/x509/x509_vpm.c +++ b/src/lib/libcrypto/x509/x509_vpm.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_vpm.c,v 1.50 2025/03/19 16:30:44 tb Exp $ */ | 1 | /* $OpenBSD: x509_vpm.c,v 1.51 2025/03/19 16:31:47 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 2004. | 3 | * project 2004. |
4 | */ | 4 | */ |
@@ -703,7 +703,8 @@ X509_VERIFY_PARAM_get0(int id) | |||
703 | return NULL; | 703 | return NULL; |
704 | 704 | ||
705 | if (id < num) | 705 | if (id < num) |
706 | return default_table + id; | 706 | return &default_table[id]; |
707 | |||
707 | return sk_X509_VERIFY_PARAM_value(param_table, id - num); | 708 | return sk_X509_VERIFY_PARAM_value(param_table, id - num); |
708 | } | 709 | } |
709 | LCRYPTO_ALIAS(X509_VERIFY_PARAM_get0); | 710 | LCRYPTO_ALIAS(X509_VERIFY_PARAM_get0); |