Don't set ssl_type for new users if not set

This commit is contained in:
Jamie Cameron
2015-12-01 15:14:38 -08:00
parent 438e95e616
commit ba06eb24e5

View File

@@ -84,7 +84,8 @@ else {
}
# Set SSL fields
if ($mysql_version >= 5 && defined($in{'ssl_type'})) {
if ($mysql_version >= 5 && defined($in{'ssl_type'}) &&
(!$in{'new'} || $in{'ssl_type'} || $in{'ssl_cipher'})) {
&execute_sql_logged($master_db,
"update user set ssl_type = ? ".
"where user = ? and host = ?",