Skip to content

Commit

Permalink
CONC-161: Increase username length to 128
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Feb 21, 2016
1 parent 9818a85 commit dc1a871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/mariadb_com.h
Expand Up @@ -33,7 +33,7 @@
#define NAME_LEN 256 /* Field/table name length */
#define HOSTNAME_LENGTH 60
#define SYSTEM_MB_MAX_CHAR_LENGTH 3
#define USERNAME_CHAR_LENGTH 16
#define USERNAME_CHAR_LENGTH 128
#define USERNAME_LENGTH USERNAME_CHAR_LENGTH * SYSTEM_MB_MAX_CHAR_LENGTH
#define SERVER_VERSION_LENGTH 60
#define SQLSTATE_LENGTH 5
Expand Down
2 changes: 1 addition & 1 deletion plugins/auth/my_auth.c
Expand Up @@ -73,7 +73,7 @@ static int native_password_auth_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
return CR_SERVER_HANDSHAKE_ERR;

/* save it in MYSQL */
memcpy(mysql->scramble_buff, pkt, SCRAMBLE_LENGTH);
memmove(mysql->scramble_buff, pkt, SCRAMBLE_LENGTH);
mysql->scramble_buff[SCRAMBLE_LENGTH] = 0;
}

Expand Down

0 comments on commit dc1a871

Please sign in to comment.