[fix](ssl) fix ssl connection bug for JDBC 8.0.19 (#20659)
This commit is contained in:
@ -192,12 +192,6 @@ public class MysqlProto {
|
||||
channel.setSslMode(true);
|
||||
LOG.debug("switch to ssl mode.");
|
||||
handshakeResponse = channel.fetchOnePacket();
|
||||
capability = new MysqlCapability(MysqlProto.readLowestInt4(handshakeResponse));
|
||||
if (!capability.isClientUseSsl()) {
|
||||
ErrorReport.report(ErrorCode.ERR_NONSSL_HANDSHAKE_RESPONSE);
|
||||
sendResponsePacket(context);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
handshakeResponse = clientRequestPacket;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user