mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
fixed a Bug #4998 "--protocol doesn't reject bad values"
This commit is contained in:
@@ -582,8 +582,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
|
||||
}
|
||||
case (int) OPT_MYSQL_PROTOCOL:
|
||||
{
|
||||
if ((opt_protocol= find_type(argument, &sql_protocol_typelib, 0))
|
||||
== ~(ulong) 0)
|
||||
if (!(opt_protocol= find_type(argument, &sql_protocol_typelib,0)))
|
||||
{
|
||||
fprintf(stderr, "Unknown option to protocol: %s\n", argument);
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user