mirror of
https://github.com/MariaDB/server.git
synced 2025-12-07 17:42:39 +03:00
Jammed Qmgr a bit more
Fixed Bug #4935, initialise before connecting again Some lines removed
This commit is contained in:
@@ -70,19 +70,21 @@ SocketClient::connect()
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
const int r = ::connect(m_sockfd, (struct sockaddr*) &m_servaddr, sizeof(m_servaddr));
|
||||
if (r == -1)
|
||||
if (r == -1) {
|
||||
NDB_CLOSE_SOCKET(m_sockfd);
|
||||
m_sockfd= -1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (m_auth)
|
||||
if (m_auth) {
|
||||
if (!m_auth->client_authenticate(m_sockfd))
|
||||
{
|
||||
NDB_CLOSE_SOCKET(m_sockfd);
|
||||
m_sockfd= -1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
NDB_SOCKET_TYPE sockfd= m_sockfd;
|
||||
m_sockfd= -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user