Fix to MXS-252: https://mariadb.atlassian.net/browse/MXS-252
Added missing buffer length parameter.
This commit is contained in:
@ -1701,7 +1701,7 @@ routeQuery(ROUTER* instance,
|
|||||||
querybuf)))
|
querybuf)))
|
||||||
{
|
{
|
||||||
extract_database(querybuf,db);
|
extract_database(querybuf,db);
|
||||||
snprintf(errbuf,"Unknown database: %s",db);
|
snprintf(errbuf,25+MYSQL_DATABASE_MAXLEN,"Unknown database: %s",db);
|
||||||
create_error_reply(errbuf,router_cli_ses->replydcb);
|
create_error_reply(errbuf,router_cli_ses->replydcb);
|
||||||
LOGIF(LE, (skygw_log_write_flush(
|
LOGIF(LE, (skygw_log_write_flush(
|
||||||
LOGFILE_ERROR,
|
LOGFILE_ERROR,
|
||||||
|
|||||||
Reference in New Issue
Block a user