aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-30 15:06:11 -0400
committerJack Lloyd <[email protected]>2017-09-30 15:06:11 -0400
commitff0a08adee128460df08513327c84067110f8ea1 (patch)
tree5e7adb2dc6462e3142a413980d0ad539fc6f5b07 /src/cli
parent4cef9e75ce353d9254a50b0165bd0d3f98a8d949 (diff)
Fix bad comparison
Caught by Sonar
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/speed.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index 41a6775e4..717c39cde 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -1572,7 +1572,7 @@ class Speed final : public Command
Botan::SymmetricKey symkey1 = ka_timer.run([&]() { return ka1.derive_key(32, ka2_pub); });
Botan::SymmetricKey symkey2 = ka_timer.run([&]() { return ka2.derive_key(32, ka1_pub); });
- if(symkey1 != symkey1)
+ if(symkey1 != symkey2)
{
error_output() << "Key agreement mismatch in PK bench\n";
}