Skip to content

Commit

Permalink
umysql, bugfix: fix native password auth error.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Sep 27, 2024
1 parent 9341651 commit f48ba38
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions umysql/src/Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f48ba38

Please sign in to comment.