Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
markus456 committed Mar 5, 2018
1 parent f58856d commit 4f6b9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/modules/protocol/MySQL/mysql_common.cc
Expand Up @@ -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)
{
Expand Down

0 comments on commit 4f6b9d2

Please sign in to comment.