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

fixed a Bug #4998 "--protocol doesn't reject bad values"

This commit is contained in:
unknown
2004-08-23 20:55:09 +05:00
parent 83e3d3f9a3
commit aab7b774d5
9 changed files with 26 additions and 10 deletions

View File

@@ -633,8 +633,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break;
case 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);