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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user