Allow empty password for mysql-monitor_password

pull/480/head
René Cannaò 10 years ago
parent a625ce5633
commit 5d56b6677e

@ -644,13 +644,13 @@ bool MySQL_Threads_Handler::set_variable(char *name, char *value) { // this is t
}
}
if (!strcasecmp(name,"monitor_password")) {
if (vallen) {
free(variables.monitor_password);
variables.monitor_password=strdup(value);
return true;
} else {
return false;
}
// if (vallen) {
free(variables.monitor_password);
variables.monitor_password=strdup(value);
return true;
// } else {
// return false;
// }
}
if (!strcasecmp(name,"monitor_query_variables")) {
if (vallen) {

@ -6,7 +6,7 @@
datadir="/tmp"
datadir="/var/lib/proxysql"
admin_variables=
{

Loading…
Cancel
Save