1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

fix for a possible DoS in the my_net_skip_rest()

This commit is contained in:
Sergei Golubchik
2010-02-23 13:04:58 +01:00
parent 2840821cc9
commit f04cf03f75
4 changed files with 10 additions and 3 deletions

View File

@@ -474,7 +474,8 @@ check_user(THD *thd, enum enum_server_command command,
}
}
my_ok(thd);
thd->password= test(passwd_len); // remember for error messages
thd->net.net_skip_rest_factor= 2; // skip at most 2*max_packet_size
thd->password= test(passwd_len); // remember for error messages
/* Ready to handle queries */
DBUG_RETURN(0);
}