mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-21824
restore check for client charset_info == NULL, which was previously removed in MDEV-8844
This commit is contained in:
@ -947,7 +947,7 @@ size_t convert_error_message(char *to, size_t to_length, CHARSET_INFO *to_cs,
|
||||
/* Make room for the null terminator. */
|
||||
to_length--;
|
||||
|
||||
if (to_cs == &my_charset_bin)
|
||||
if (!to_cs || to_cs == &my_charset_bin)
|
||||
to_cs= system_charset_info;
|
||||
uint32 cnv_length= my_convert_using_func(to, to_length,
|
||||
to_cs,
|
||||
|
Reference in New Issue
Block a user