diff options
author | unknown <vva@eagle.mysql.r18.ru> | 2004-08-24 20:13:31 +0500 |
---|---|---|
committer | unknown <vva@eagle.mysql.r18.ru> | 2004-08-24 20:13:31 +0500 |
commit | 84648dfbdd96d1c56f5e79c3b5b3bc195567e226 (patch) | |
tree | 82f89fe2bd46076041d452986fa0f42c286e8211 /client/mysqlcheck.c | |
parent | aab7b774d58098f1397dd499c898d1221b3b50fc (diff) | |
download | mariadb-git-84648dfbdd96d1c56f5e79c3b5b3bc195567e226.tar.gz |
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
Diffstat (limited to 'client/mysqlcheck.c')
-rw-r--r-- | client/mysqlcheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c index 50133ac4059..47512b2a277 100644 --- a/client/mysqlcheck.c +++ b/client/mysqlcheck.c @@ -271,7 +271,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), case 'V': print_version(); exit(0); case OPT_MYSQL_PROTOCOL: { - if (!(opt_protocol= find_type(argument, &sql_protocol_typelib,0))) + if ((opt_protocol= find_type(argument, &sql_protocol_typelib,0)) <= 0) { fprintf(stderr, "Unknown option to protocol: %s\n", argument); exit(1); |