Skip to content

Commit 358cdb2

Browse files
committed
Bug#22834781: CRASH IN CHECK_SYSLOG_TAG WHEN SETTING LOG_SYSLOG_TAG=NULL
Add check that the given tag string is non-null before checking for illegal characters.
1 parent 0958be0 commit 358cdb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sys_vars.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,7 @@ static bool fix_syslog(sys_var *self, THD *thd, enum_var_type type)
20552055

20562056
static bool check_syslog_tag(sys_var *self, THD *THD, set_var *var)
20572057
{
2058-
return ((var->value != NULL) &&
2058+
return ((var->save_result.string_value.str != NULL) &&
20592059
(strchr(var->save_result.string_value.str, FN_LIBCHAR) != NULL));
20602060
}
20612061

0 commit comments

Comments
 (0)