Skip to content
Permalink
Browse files

Schannel fix for 9ba8e32

When we try to reconnect we need to set CLIENT_REMEMBER_OPTIONS otherwise
new connection will not be secure.
  • Loading branch information
9EOR9 committed Oct 11, 2019
1 parent 0235aa6 commit a0cbee900b58bbf1e946b0427cfad9e0b611a876
Showing with 6 additions and 3 deletions.
  1. +6 −3 libmariadb/mariadb_lib.c
@@ -1216,19 +1216,22 @@ mysql_real_connect(MYSQL *mysql, const char *host, const char *user,
while (ssl_retry)
{
if ((my= mysql->methods->db_connect(mysql, host, user, passwd,
db, port, unix_socket, client_flag)))
db, port, unix_socket, client_flag | CLIENT_REMEMBER_OPTIONS)))
return my;

switch (mysql->net.extension->extended_errno) {
case SEC_E_INVALID_TOKEN:
case SEC_E_BUFFER_TOO_SMALL:
case SEC_E_MESSAGE_ALTERED:
ssl_retry--;
break;
break;
default:
return NULL;
ssl_retry= 0;
break;
}
}
if (!ny && !(client_flag & CLIENT_REMEMBER_OPTIONS))
mysql_close_options(mysql);
return my;
}
#endif

0 comments on commit a0cbee9

Please sign in to comment.
You can’t perform that action at this time.