mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 21:25:36 +02:00
more accurate processing of find_type result
(Bug #4998 --protocol doesn't reject bad values) client/mysql.cc: more accurate processing of find_type result client/mysqladmin.c: more accurate processing of find_type result client/mysqlbinlog.cc: more accurate processing of find_type result client/mysqlcheck.c: more accurate processing of find_type result client/mysqldump.c: more accurate processing of find_type result client/mysqlimport.c: more accurate processing of find_type result client/mysqlshow.c: more accurate processing of find_type result sql-common/client.c: more accurate processing of find_type result
This commit is contained in:
parent
aab7b774d5
commit
84648dfbdd
8 changed files with 9 additions and 10 deletions
|
|
@ -1057,9 +1057,8 @@ void mysql_read_default_options(struct st_mysql_options *options,
|
|||
options->max_allowed_packet= atoi(opt_arg);
|
||||
break;
|
||||
case 28: /* protocol */
|
||||
if ((options->protocol = find_type(opt_arg,
|
||||
&sql_protocol_typelib,0))
|
||||
== ~(ulong) 0)
|
||||
if ((options->protocol= find_type(opt_arg,
|
||||
&sql_protocol_typelib,0)) <= 0)
|
||||
{
|
||||
fprintf(stderr, "Unknown option to protocol: %s\n", opt_arg);
|
||||
exit(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue