From f48ba38d50b8222248e93032671fb7eb5862b227 Mon Sep 17 00:00:00 2001 From: xicilion Date: Sat, 28 Sep 2024 03:03:08 +0800 Subject: [PATCH] umysql, bugfix: fix native password auth error. --- umysql/src/Connection.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/umysql/src/Connection.cpp b/umysql/src/Connection.cpp index aef0579bd..567ed2f53 100755 --- a/umysql/src/Connection.cpp +++ b/umysql/src/Connection.cpp @@ -315,11 +315,8 @@ bool Connection::processHandshake() m_clientCaps |= MCP_PLUGIN_AUTH; } - if (m_clientCaps & MCP_PLUGIN_AUTH) - { - m_salt.assign(scrambleBuff, 8); - m_salt.append(scrambleBuff2); - } + m_salt.assign(scrambleBuff, 8); + m_salt.append(scrambleBuff2); m_clientCaps &= ~MCP_COMPRESS; m_clientCaps &= ~MCP_NO_SCHEMA;