diff options
author | Jack Lloyd <[email protected]> | 2017-09-30 15:06:11 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-30 15:06:11 -0400 |
commit | ff0a08adee128460df08513327c84067110f8ea1 (patch) | |
tree | 5e7adb2dc6462e3142a413980d0ad539fc6f5b07 /src/cli | |
parent | 4cef9e75ce353d9254a50b0165bd0d3f98a8d949 (diff) |
Fix bad comparison
Caught by Sonar
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/speed.cpp | 2 |
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"; } |