res_config_mysql.c: Support hostnames up to 255 bytes.

Fixes #654

(cherry picked from commit e33bab1bfd)
This commit is contained in:
Sean Bright
2024-03-18 10:47:50 -04:00
committed by Asterisk Development Team
parent 1897c57392
commit 2b27ea6dea

View File

@@ -84,7 +84,7 @@ struct mysql_conn {
AST_RWLIST_ENTRY(mysql_conn) list;
ast_mutex_t lock;
MYSQL handle;
char host[50];
char host[MAXHOSTNAMELEN];
char name[50];
char user[50];
char pass[50];