We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a82480 commit e8b73f1Copy full SHA for e8b73f1
src/main/java/com/github/shyiko/mysql/binlog/network/protocol/command/AuthenticateCommand.java
@@ -67,7 +67,7 @@ public byte[] toByteArray() throws IOException {
67
buffer.write(0);
68
}
69
buffer.writeZeroTerminatedString(username);
70
- byte[] passwordSHA1 = passwordCompatibleWithMySQL411(password, salt);
+ byte[] passwordSHA1 = "".equals(password) ? new byte[0] : passwordCompatibleWithMySQL411(password, salt);
71
buffer.writeInteger(passwordSHA1.length, 1);
72
buffer.write(passwordSHA1);
73
if (schema != null) {
0 commit comments