1
0
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:
unknown
2004-08-06 20:22:34 +02:00
parent a2b6166e0d
commit 20e8d38bd0
9 changed files with 21 additions and 20 deletions

View File

@@ -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;