aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-01-01 12:55:37 -0500
committerJack Lloyd <[email protected]>2018-01-01 12:55:37 -0500
commit934f282ca5b19cbe1da963de2709aaa46f195656 (patch)
treeedddd6e992e6a791064473679a18b76aecdbc924
parent3407b0c98b63ae0f9926a8def7838862711d2e6d (diff)
Fix bogus comparison [ci skip]
Coverity
-rw-r--r--src/tests/test_modes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test_modes.cpp b/src/tests/test_modes.cpp
index 7498f1390..3ac34760d 100644
--- a/src/tests/test_modes.cpp
+++ b/src/tests/test_modes.cpp
@@ -61,7 +61,7 @@ class Cipher_Mode_Tests final : public Text_Based_Test
result.test_eq("mode not authenticated", enc->authenticated(), false);
- if(algo.find("/CBC"))
+ if(algo.find("/CBC") != std::string::npos)
{
// can't test equal due to CBC padding
result.test_lte("output_length", enc->output_length(input.size()), expected.size());