diff --git a/lib/SQLite3_Server.cpp b/lib/SQLite3_Server.cpp index cf8c9efcc..36c61231e 100644 --- a/lib/SQLite3_Server.cpp +++ b/lib/SQLite3_Server.cpp @@ -750,12 +750,13 @@ bool SQLite3_Server::set_variable(char *name, char *value) { // this is the pub if (vallen) { bool update_creds=false; if ((variables.mysql_ifaces==NULL) || strcasecmp(variables.mysql_ifaces,value) ) update_creds=true; - if (variables.mysql_ifaces) + if (variables.mysql_ifaces) { free(variables.mysql_ifaces); variables.mysql_ifaces=strdup(value); if (update_creds && variables.mysql_ifaces) { S_amll.update_ifaces(variables.mysql_ifaces, &S_amll.ifaces_mysql); } + } return true; } else { return false;