Fix problem of certain passwords (e.g. joomla1) being treated incorrectly as null MXS-202.

This commit is contained in:
Martin Brampton
2015-06-24 21:06:56 +01:00
parent ced5c67338
commit e4bde4402b
2 changed files with 5 additions and 8 deletions

View File

@ -134,6 +134,8 @@ typedef struct mysql_session {
#endif
} MYSQL_session;
/* The following can be compared using memcmp to detect a null password */
uint8_t null_client_sha1[MYSQL_SCRAMBLE_LEN]="";
/** Protocol packing macros. */
#define gw_mysql_set_byte2(__buffer, __int) do { \