Commit f939dd18 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Removed unneeded cast.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10512 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9a73f871
......@@ -456,7 +456,7 @@ public class SASLAuthentication {
return Status.authenticated;
}
// Check that hostname matches the one provided in a certificate
SocketConnection connection = (SocketConnection) session.getConnection();
Connection connection = session.getConnection();
for (Certificate certificate : connection.getPeerCertificates()) {
for (String identity : CertificateManager.getPeerIdentities((X509Certificate) certificate)) {
......@@ -466,7 +466,7 @@ public class SASLAuthentication {
}
}
}
}
else if (session instanceof LocalClientSession) {
// Client EXTERNALL login
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment