diff options
Diffstat (limited to 'src')
| -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); |
