diff options
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/speed.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp index d1b6aead3..42172f38d 100644 --- a/src/cli/speed.cpp +++ b/src/cli/speed.cpp @@ -742,7 +742,13 @@ class Speed final : public Command for(std::string cpuid_to_clear : Botan::split_on(get_arg("clear-cpuid"), ',')) { - for(auto bit : Botan::CPUID::bit_from_string(cpuid_to_clear)) + auto bits = Botan::CPUID::bit_from_string(cpuid_to_clear); + if(bits.empty()) + { + error_output() << "Warning don't know CPUID flag '" << cpuid_to_clear << "'\n"; + } + + for(auto bit : bits) { Botan::CPUID::clear_cpuid_bit(bit); } |