MXS-1698: Fix double SSL connection

When backend SSL connections were created, the connection creation was
done twice. This was due to the lacking detection of an already
established SSL connection.
This commit is contained in:
Markus Mäkelä
2018-03-05 09:31:43 +02:00
parent 86eae02366
commit d5226fa7d1

View File

@ -1370,7 +1370,7 @@ mxs_auth_state_t gw_send_backend_auth(DCB *dcb)
with_ssl, ssl_established);
ss_dassert(buffer);
if (with_ssl)
if (with_ssl && !ssl_established)
{
if (dcb_write(dcb, buffer) && dcb_connect_SSL(dcb) >= 0)
{