diff options
author | tb <> | 2025-03-19 16:29:37 +0000 |
---|---|---|
committer | tb <> | 2025-03-19 16:29:37 +0000 |
commit | 189a40af9925283c8a4e2c66498e9b2e9676f33e (patch) | |
tree | 367907b780170170289b136861ec64c81c5ebda7 | |
parent | b02bfbb791e62856a09ec89f0799c3c0b8355825 (diff) | |
download | openbsd-189a40af9925283c8a4e2c66498e9b2e9676f33e.tar.gz openbsd-189a40af9925283c8a4e2c66498e9b2e9676f33e.tar.bz2 openbsd-189a40af9925283c8a4e2c66498e9b2e9676f33e.zip |
X509_VERIFY_PARAM_get_count(): make NULL check explicit
ok jsing
-rw-r--r-- | src/lib/libcrypto/x509/x509_vpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_vpm.c b/src/lib/libcrypto/x509/x509_vpm.c index 4348ebe42f..7266808f24 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.48 2025/03/19 16:26:20 tb Exp $ */ | 1 | /* $OpenBSD: x509_vpm.c,v 1.49 2025/03/19 16:29:37 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 | */ |
@@ -688,7 +688,7 @@ int | |||
688 | X509_VERIFY_PARAM_get_count(void) | 688 | X509_VERIFY_PARAM_get_count(void) |
689 | { | 689 | { |
690 | int num = sizeof(default_table) / sizeof(X509_VERIFY_PARAM); | 690 | int num = sizeof(default_table) / sizeof(X509_VERIFY_PARAM); |
691 | if (param_table) | 691 | if (param_table != NULL) |
692 | num += sk_X509_VERIFY_PARAM_num(param_table); | 692 | num += sk_X509_VERIFY_PARAM_num(param_table); |
693 | return num; | 693 | return num; |
694 | } | 694 | } |