Some more C casting replaced with C++ dynamic casting

This commit is contained in:
2016-10-04 09:16:14 +02:00
parent 5a36eb0d23
commit 03d6823241
4 changed files with 14 additions and 14 deletions

View File

@@ -191,8 +191,8 @@ eap::credentials::source_t eap::credentials_ttls::combine(
// Combine inner credentials.
source_t src_inner = m_inner->combine(
cred_cached ? ((const credentials_ttls*)cred_cached)->m_inner.get() : NULL,
*((const config_method_ttls&)cfg).m_inner,
cred_cached ? dynamic_cast<const credentials_ttls*>(cred_cached)->m_inner.get() : NULL,
*dynamic_cast<const config_method_ttls&>(cfg).m_inner,
pszTargetName);
return std::min<source_t>(src_outer, src_inner);