aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509/x509_obj.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2022-02-04 18:21:11 -0500
committerJack Lloyd <[email protected]>2022-02-06 08:52:17 -0500
commitbfa36e60338538a3563f542e0ac76d21b6ad7019 (patch)
treeeab4f996e829a6f9cbf0b65936a457d7c7dd538c /src/lib/x509/x509_obj.cpp
parentfbb7c5fba1bcde2460dda48c1423a23b3b3062bf (diff)
Fix clang-tidy readability-container-size-empty warnings
Diffstat (limited to 'src/lib/x509/x509_obj.cpp')
-rw-r--r--src/lib/x509/x509_obj.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/x509/x509_obj.cpp b/src/lib/x509/x509_obj.cpp
index c0268306f..2266e0020 100644
--- a/src/lib/x509/x509_obj.cpp
+++ b/src/lib/x509/x509_obj.cpp
@@ -186,7 +186,7 @@ Certificate_Status_Code X509_Object::verify_signature(const Public_Key& pub_key)
const std::vector<std::string> sig_info =
split_on(m_sig_algo.get_oid().to_formatted_string(), '/');
- if(sig_info.size() < 1 || sig_info.size() > 2 || sig_info[0] != pub_key.algo_name())
+ if(sig_info.empty() || sig_info.size() > 2 || sig_info[0] != pub_key.algo_name())
return Certificate_Status_Code::SIGNATURE_ALGO_BAD_PARAMS;
const std::string pub_key_algo = sig_info[0];