aboutsummaryrefslogtreecommitdiffstats
path: root/src/bogo_shim/bogo_shim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bogo_shim/bogo_shim.cpp')
-rw-r--r--src/bogo_shim/bogo_shim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bogo_shim/bogo_shim.cpp b/src/bogo_shim/bogo_shim.cpp
index b0f658451..31c4d62e7 100644
--- a/src/bogo_shim/bogo_shim.cpp
+++ b/src/bogo_shim/bogo_shim.cpp
@@ -1054,9 +1054,9 @@ std::vector<uint16_t> Shim_Policy::ciphersuite_list(Botan::TLS::Protocol_Version
for(auto suite_name : suites)
{
const auto suite = Botan::TLS::Ciphersuite::from_name(suite_name);
- if(suite.valid() == false)
+ if(!suite || !suite->valid())
shim_exit_with_error("Bad ciphersuite name " + suite_name);
- ciphersuite_codes.push_back(suite.ciphersuite_code());
+ ciphersuite_codes.push_back(suite->ciphersuite_code());
}
}
else