aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-09-29 19:16:35 +0000
committerlloyd <[email protected]>2009-09-29 19:16:35 +0000
commit0d5a5fbdf57c465bb8963273102ab83efd443c30 (patch)
tree5d067cf105440a3d9165f3725dd6b6c9ddf5e0f0
parent9a45274e5d7e91fa8cc0a13de3ec9b8195f96611 (diff)
Fix benchmarking of PK stuff
-rw-r--r--checks/bench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/checks/bench.cpp b/checks/bench.cpp
index d0fff1114..f821e04e3 100644
--- a/checks/bench.cpp
+++ b/checks/bench.cpp
@@ -166,7 +166,7 @@ bool bench_algo(const std::string& algo,
std::vector<std::string> algo_parts = Botan::split_on(algo, '/');
- if(algo_parts.empty())
+ if(algo_parts.size() < 2) // not a cipher mode
return false;
std::string cipher = algo_parts[0];